I want to build a .net 4.5/VS2012 solution in TeamCity. My builds work on the agent that has VS2012 installed, but on the agent that doesn\'t have VS2012, I get warnings lik
If you're looking for proof it's in the Windows SDK here's the installer :
Note: This still doesn't give you Microsoft.WebApplication.targets
for which you still need to either copy it manually, or install VS on your server.
I just went ahead with the free Visual Studio Express 2013 which fixed this.
try to install the Windows SDK for Windows 8, http://msdn.microsoft.com/en-us/library/windows/desktop/hh852363.aspx, it worked for me.
I'm running into this problem in my project using Visual Studio 2013 and .NET 4.5. Seems like a problem because I moved the project to another directory.
You can fix this issue by verifying that the HintPath
in the project file is correct or not (.csproj file).
<HintPath>..\..\..\..\..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5.1\System.Runtime.WindowsRuntime.dll</HintPath>
Since I created a new directory and moved my project into that directory, I found that the relative path to the System.Runtime.WindowsRuntime.dll
in the HintPath
was no longer correct, and thus, could not find the library.
Fixing this path resolved the issue for me.
This page lists .NET SDKs for each Visual Studio version. http://getdotnet.azurewebsites.net/target-dotnet-platforms.html
For a smaller download choose the 'developer pack' or 'targeting pack' rather than the full Windows SDK.
My OS is Win7 x64
I have the same problem and based on another answer I found a solution:
I have only "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.2" in my system and to resolve it I renamed v4.52 to v4.5 and it worked.
So for the long run I've made a junction to the 4.5.2 folder and renamed the junction point v.4.5 and it work.
This is the official solution which worked for me (TFS 2012) http://dotnetnsqlcorner.blogspot.nl/2012/11/microsoftcommomtargets-warning-983.html
In short: