TFS和Microsoft.common.targets组合不同步VS2015

时间:2016-02-19 18:23:12

标签: dll tfs assemblies

我刚刚将我的TFS源升级为使用DevExpress 15.2.5。但是,现在我在输出中收到了一堆警告,例如

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3274: The primary reference "C:\Users\User1\Source\Release\V6.1\CommonBin\Release\WebControls.dll" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v3.5".

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3275: The primary reference "C:\Users\User1\Source\Release\V6.1\CommonBin\Release\WebControls.dll" could not be resolved because it has an indirect dependency on the assembly "DevExpress.Data.v15.2, Version=15.2.5.0, Culture=neutral, PublicKeyToken=7ea533hgx2169hs3" which was built against the ".NETFramework,Version=v4.0,Profile=Client" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v3.5".

以及大约30个其他类似的警告。

很明显,某些东西与我的程序集不同步,因为它们引用了错误的版本。所以我查看了我的TFS项目.csproj文件。正在引用的DevExpress和.NET框架的版本是正确的。

然后我转到Microsoft.Common.targets文件并在记事本中打开。我注意到该文件引用了旧版本的所有内容。如何与TFS组件同步?

1 个答案:

答案 0 :(得分:1)

您似乎需要更改项目以在项目属性页面上使用.NET framework 4.5:

enter image description here

警告提示这可能会导致更多警告或错误,具体取决于您使用的.NET API。