Visual Studio warning: “Some of the properties ass

2019-01-21 01:12发布

When I open my solution, I get a dialog with this warning. The solution (one web app, one class project) builds without errors.

How can I determine what properties are causing the problem, and resolve the error?

14条回答
在下西门庆
2楼-- · 2019-01-21 01:42

Resolved an identical error message in VS2012 by following Boycs's lead. For me, the problem was two extraneous GlobalSection(SolutionConfigurationPlatforms) = preSolution blocks at the bottom of my SLN file.

查看更多
等我变得足够好
3楼-- · 2019-01-21 01:43

Check your SccNumberOfProjects in your .sln file it may be differs from your actual project number.

查看更多
甜甜的少女心
4楼-- · 2019-01-21 01:43

I can add one more possible solution - A dodgy merge meant that one of the SccProjectUniqueName/SccProjectName/SccLocalPath stanzas inside the GlobalSection(TeamFoundationVersionControl) section had numbers that weren't unique, even though the SccNumberOfProjects was correct. Fixed up the numbering, error message went away.

查看更多
贪生不怕死
5楼-- · 2019-01-21 01:44

VS2015 Update 3. [GlobalSection(TeamFoundationVersionControl) = preSolution] was duplicated in solution file. The bottom duplicate contained a project that has previously removed... so removing that duplicate fixed the issue. I think the duplication was caused by a previous merging problem.

查看更多
贪生不怕死
6楼-- · 2019-01-21 01:48

I just fixed a similar issue with a VS2010 solution with 35 projects... The cause was a duplicated

GlobalSection(TeamFoundationVersionControl)

section in the solution file. I closed the solution, removed the duplicate GlobalSection(TeamFoundationVersionControl) config and reloaded the solution and the warning message was gone.

If this is not the issue for you, considering you only have 2 projects I would ditch the busted solution file, create a fresh solution and re-add your two projects...

查看更多
虎瘦雄心在
7楼-- · 2019-01-21 01:48

In VS 2015, I had two of these sections "GlobalSection(TeamFoundationVersionControl) = preSolution"

The first one included the latest project added to the solution, the second one (near the end of the solution file) did not. After deleting the second one, the solution opened in VS 2015 without any errors.

查看更多
登录 后发表回答