Visual Studio中的程序集引用问题

Jef*_*ham 5 .net c# wpf visual-studio-2010 visual-studio

我在visual studio proj2中创建了一个新项目,我希望它与proj1具有相同的程序集引用,所以我打开了proj1.csproj并复制了:

<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="system" />
<Reference Include="System.Windows" />
<Reference Include="System.Core" />
<Reference Include="System.Xml" />
<Reference Include="System.Net" />
<Reference Include="System.Windows.Browser" />
</ItemGroup>
Run Code Online (Sandbox Code Playgroud)

并将其粘贴到proj1.csproj中.问题是我的System.Windows程序集引用旁边有一个感叹号,当我尝试单击它时,它说:

无法在对象浏览器中查看此项目,因为它不可用或尚未构建.请确保项目可用并已构建.

当然,在我的.cs文件中,它说

命名空间"System"中不存在类型或命名空间"Windows"(您是否缺少程序集引用?)

如何让我的程序集引用工作?

Dan*_*mov 7

转到项目属性并确保至少定位到Framework 3.0.