2011-05-10 8 views
8

En Visual Studio 2010 Express [VB.NET], si cambio el marco de destino a través de las propiedades de aplicación> compilar> opciones de compilación avanzadas a 2,0 desde 4,0 marco, me sale una lista de errores:Cambios en el marco de destino

Warning 5 The referenced component 'System.Xml.Linq' could not be found. 
Warning 6 The referenced component 'System.Data.DataSetExtensions' could not be found.  
Warning 4 The referenced component 'System.Core' could not be found. 
Warning 2 The primary reference "System.Xml.Linq", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Xml.Linq" or retarget your application to a framework version which contains "System.Xml.Linq". WindowsApplication3 
Warning 3 The primary reference "System.Data.DataSetExtensions", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Data.DataSetExtensions" or retarget your application to a framework version which contains "System.Data.DataSetExtensions". WindowsApplication3 
Warning 1 The primary reference "System.Core", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Core" or retarget your application to a framework version which contains "System.Core". WindowsApplication3 
Warning 7 Namespace or type specified in the project-level Imports 'System.Xml.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. WindowsApplication3 
Warning 8 Namespace or type specified in the project-level Imports 'System.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. WindowsApplication3 

He buscado alrededor, sin embargo, parece que no puedo encontrar una respuesta que creo que me sería útil. Solo estoy usando un proyecto en blanco sin nada en él.


Warning 1 Namespace or type specified in the project-level Imports 'System.Xml.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. WindowsApplication3 
Warning 2 Namespace or type specified in the project-level Imports 'System.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. WindowsApplication3 

Respuesta

8

Trate de no incluir las referencias en su proyecto (s) para:

System.Xml.Linq 
System.Data.DataSetExtensions 
System.Core 

Se añaden automáticamente por VS2010 Express.

Puede hacerlo expandiendo el árbol de referencias, resaltando la referencia y pulsando eliminar.

+0

Ah Gracias, eso funciona. No pensé que sería así de simple. Sin embargo, sigo recibiendo Advertencia \t Skeela87

+1

Intenta eliminar la "Importar" a esos espacios de nombres en tu código. – Matt

+0

Extraño, intenté hacer exactamente lo mismo que hasta ahora, pero esta vez eliminé los errores. TYVM. – Skeela87

Cuestiones relacionadas