我在尝试在 Visual Studio 2012 中加载某些项目时收到以下错误:
G:\path\project.csproj : error : The value "" of the "Project" attribute in element <Import> is invalid. Parameter "path" cannot have zero length.
在 svn 签出后,我正在机器上重新启动来尝试这个。这些项目可以正确加载到其他机器上。
有人可以帮我解决这个问题吗?谷歌没有给我答案,我希望如此。
EDIT
这是 csproj 文件的相关部分。
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(StyleCopTargets)" />
</Project>
你写的你从头开始。我怀疑未安装 StyleCop,因此别名值被替换为空白,使该字段也为空白。
删除引用或安装 StyleCop。我认为这应该可以解决问题。
编辑:只是为了方便:http://stylecop.codeplex.com/ http://stylecop.codeplex.com/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)