Changement de cible cadre
Dans Visual Studio 2010 Express [VB.NET], si je change le framework cible via les propriétés de l'Application > compiler > advanced options de compilation pour framework 2.0 à partir de 4.0, je reçois une liste des erreurs:
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
J'ai cherché partout, et pourtant, je n'arrive pas à trouver une réponse qui je pense serait de l'utiliser pour moi. Je suis juste en utilisant un projet vide avec rien.
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
OriginalL'auteur Skeela87 | 2011-05-10
Vous devez vous connecter pour publier un commentaire.
Essayez de supprimer les références de votre projet(s):
Ils sont ajoutés automatiquement par VS2010 express.
Vous pouvez le faire en élargissant les références de l'arbre, en soulignant la référence et en cliquant sur supprimer.
Essayez de supprimer les "Importer" pour les espaces de noms dans votre code.
Bizarre, j'ai essayé de faire exactement la même que j'ai jusqu'à présent mais elle a supprimé les erreurs de ce temps. TYVM.
J'ai eu le même problème, sauf qu'il n'a pas montré dans l'arbre de référence. J'ai dû passer sous les références dans les propriétés du projet, et de supprimer une coche sous les espaces de noms Importés.
OriginalL'auteur Matt