c# - Problem with assembly references in Visual Studio -
i created new project in visual studio proj2 , want have same assembly references proj1, opened proj1.csproj , copied:
<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>
and pasted proj1.csproj. problem system.windows assembly reference has exclamation mark beside it, , when try click it, says:
this project cannot viewed in object browser because unavailable or not yet built. please ensure project available , built.
and of course in .cs file, says that
the type or namespace 'windows' not exist in namespace 'system' (are missing assembly reference?)
how assembly references work?
go project properties , ensure you're targeting @ least framework 3.0.
Comments
Post a Comment