Where can I download the .NET 4.5 Multitargeting Pack for my build server?

前端 未结 8 1493
鱼传尺愫
鱼传尺愫 2020-12-13 23:52

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

8条回答
  •  温柔的废话
    2020-12-14 00:38

    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).

    ..\..\..\..\..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5.1\System.Runtime.WindowsRuntime.dll
    

    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.

提交回复
热议问题