2013-06-18 1 views
0

J'ai créé un nouveau projet d'application web de test asp.net sur codeplex pour télécharger des fichiers sur mon appharbor domain. mais la construction est échoué seen téléchargeant le site web simle asp.net à appharbor à partir du codeplex

Je suis actuellement concentré sur pour fixer la première question

Le type ou le nom namespace « Optimisation » n'existe pas dans l'espace de noms « System.Web »

J'ai installé le paquet Optimaztion. Je peux voir la DLL dans la référence. J'ai mis le copylocal à true dans les propriétés dll. mais toujours obtenir la même erreur

une vue de construction journal se présente comme suit

 "D:\temp\qruzvbcw.ri3\input\MyProjectFiles.sln" (default target) (1) -> 
     "D:\temp\qruzvbcw.ri3\input\MyProjects\MyProjects.csproj" (default target) (2) -> 
     (CoreCompile target) -> 
     App_Start\BundleConfig.cs(5,18): error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) [D:\temp\qruzvbcw.ri3\input\MyProjects\MyProjects.csproj] 
     App_Start\AuthConfig.cs(5,17): error CS0234: The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\temp\qruzvbcw.ri3\input\MyProjects\MyProjects.csproj] 
     Account\Manage.aspx.cs(5,17): error CS0234: The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\temp\qruzvbcw.ri3\input\MyProjects\MyProjects.csproj] 
     Account\OpenAuthProviders.ascx.cs(4,17): error CS0234: The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\temp\qruzvbcw.ri3\input\MyProjects\MyProjects.csproj] 
     Account\Register.aspx.cs(8,17): error CS0234: The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\temp\qruzvbcw.ri3\input\MyProjects\MyProjects.csproj] 
     Account\RegisterExternalLogin.aspx.cs(4,7): error CS0246: The type or namespace name 'DotNetOpenAuth' could not be found (are you missing a using directive or an assembly reference?) [D:\temp\qruzvbcw.ri3\input\MyProjects\MyProjects.csproj] 
     Account\RegisterExternalLogin.aspx.cs(5,17): error CS0234: The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\temp\qruzvbcw.ri3\input\MyProjects\MyProjects.csproj] 
     App_Start\RouteConfig.cs(5,17): error CS0234: The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\temp\qruzvbcw.ri3\input\MyProjects\MyProjects.csproj] 
     Global.asax.cs(5,18): error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) [D:\temp\qruzvbcw.ri3\input\MyProjects\MyProjects.csproj] 
     ViewSwitcher.ascx.cs(8,17): error CS0234: The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\temp\qruzvbcw.ri3\input\MyProjects\MyProjects.csproj] 
     App_Start\BundleConfig.cs(12,44): error CS0246: The type or namespace name 'BundleCollection' could not be found (are you missing a using directive or an assembly reference?) [D:\temp\qruzvbcw.ri3\input\MyProjects\MyProjects.csproj] 
     Account\Manage.aspx.cs(71,28): error CS0246: The type or namespace name 'OpenAuthAccountData' could not be found (are you missing a using directive or an assembly reference?) [D:\temp\qruzvbcw.ri3\input\MyProjects\MyProjects.csproj] 
     Account\OpenAuthProviders.ascx.cs(37,28): error CS0246: The type or namespace name 'ProviderDetails' could not be found (are you missing a using directive or an assembly reference?) [D:\temp\qruzvbcw.ri3\input\MyProjects\MyProjects.csproj] 

    18 Warning(s) 
    13 Error(s) 

Time Elapsed 00:00:00.62 

ce que je peux faire

Je ne peux pas voir le dossier bin dans mon codeplex project source

Répondre

0

juger à partir du référentiel Codeplex, il semble que vous n'avez pas ajouté les paquets NuGet requis par votre application. Ajoutez les packages à votre référentiel ou utilisez NuGet package restore pour récupérer automatiquement les packages lorsque l'application est créée.

0

Mon projet: VS 2012 Web Express MVC 4, Configuration Bootstrap, Contrôle de version TFS.

J'ai ajouté le contrôleur de compte, le modèle et les vues connexes après la fin de la fonctionnalité du site. Beaucoup de références/paquets manquaient. J'ai été en mesure de publier certains d'entre eux via Nuget. Cependant, ce qui corrigeait les dernières erreurs fut un clic droit sur la solution dans l'explorateur de solution et la mise à jour des paquets Nuget.

Je l'aurais ajouté comme commentaire mais je n'ai pas assez de points de rep.

Questions connexes