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

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -