VS 2012项目编译错误超过七个缺失的.cs文件

时间:2014-06-27 19:17:25

标签: c# c#-4.0 visual-studio-2012 visual-studio-extensions

为了更多地了解视觉工作室可扩展性,特别是新语言我通过链接项目遇到了这个问题。 Is there a custom language add-in for Visual Studio 2012 / VS11?

OP问题与我想要学习的内容一致,并且接受的答案看起来非常好。最后,答案中包含了与准备好的解决方案相关的链接。更新后,他建议制作。这是"更新"我下载的项目和编译时得到的7个错误几乎都是一样的。还有7个警告,警告似乎与错误有关。问题是我的知识不足以建立联系并实施解决方案。

警告都是这样的:

The file 'VisualStudioIntegration\Common\Source\CSharp\RegistrationAttributes\WebSiteProjectAttribute.cs' could not be added to the project.  Cannot add a link to the file ...long path...\WebSiteProjectAttribute.cs. This file is within the project directory tree.

匹配错误是:

Source file 'VisualStudioIntegration\Common\Source\CSharp\RegistrationAttributes\WebSiteProjectAttribute.cs' could not be found

我自己试图解决这个问题,发现了这个帖子The file could not be added to the project. This file is within the project directory tree error

并建议查看我所做的proj文件,找到7个符合警告和错误的条目。

 <ItemGroup>
<Compile Include="$(CommonRegAttributes)\WebSiteProjectAttribute.cs">
  <Link>RegistrationAttributes\WebSiteProjectAttribute.cs</Link>
</Compile>

如此帖子说要删除链接标记行,但不理解连接,我不确定这是否是明智之举。

所以我的问题是所有这些是什么是连接,我应该做什么/了解更多关于解决这些错误。

谢谢


进一步测试我保存了.proj文件并删除了链接。警告消失但是说它无法找到文件的错误仍然存​​在....


我想我找到了他们。包装设计不好。是否对磁盘上的文件进行了全局搜索,并在2010 sdk文件夹中找到了它们。它们被引用到构建包的人的文件结构......这个数字不是我的结构。更改vs项目以包含文件,所有看起来都很好。包含文件

0 个答案:

没有答案