2017-07-26 14 views
0

Ich bin neu in C# und es ist mein erstes Projekt und möchte den vollständigen Codefluss verstehen. Ich verwende scharfes IDE IDE 4.4, um Projekt zu laufen.C# -Projekt wird erstellt, aber es läuft nicht

Wenn ich es laufen für einen lokalen Host öffnen und die Nachricht appears- Achten Sie darauf, die Adresse richtigen Web haben: http://localhost:52440

Ausgang, wenn ich eine projekt-

Build started. 
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5) : Warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. 
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5) : Warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\\mscorlib.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. 
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5) : Warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.Data", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. 
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5) : Warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.EnterpriseServices", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. 
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5) : Warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.Web", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. 
Build finished successfully. (00:00:00.5339523) 
+0

Ändern Sie Ihre Ausgabeplattform in X86 –

+0

Ich habe jetzt beim Erstellen eines Projekts einen Fehler erhalten: Die Eigenschaft "OutputPath" ist für das Projekt "ASPV.csproj" nicht festgelegt. Stellen Sie sicher, dass Sie eine gültige Kombination aus Konfiguration und Plattform für dieses Projekt angegeben haben. Konfiguration = 'Freigabe' Platform = 'X86'. Dieser Fehler kann auch auftreten, wenn ein anderes Projekt versucht, einer Projekt-zu-Projekt-Referenz zu diesem Projekt zu folgen, dieses Projekt wurde entladen oder ist nicht in der Lösung enthalten, und das referenzierende Projekt erstellt nicht mit dem gleichen oder einem Äquivalent Konfiguration oder Plattform. – Raz

Antwort

0

I don bauen‘ Sie wissen, welche IDE Sie verwenden, aber versuchen Sie, ein asp \ mvc-Site-Projekt zu erstellen, oder ist es ein Desktop-Projekt, in dem Sie nach einer ausführbaren Datei suchen?

Wenn Sie versuchen, ein Desktop-Projekt zu erstellen und es auszuführen, dann haben Sie wahrscheinlich die falsche Art von Projekt gewählt. Wenn Sie eine Website betreiben wollen, dann sollten Sie zuerst in die Projektrouten und die Webkonfiguration schauen und sehen, dass alles in Ordnung ist.

+0

Es ist ein Web-Projekt und ich habe gerade eine Lösung in "Sharpdevelop" IDE geöffnet, und es funktioniert perfekt in Visual Studio, aber wegen Lizenzinteressen habe ich versucht, dasselbe Projekt in Sharp Develop IDE zu konfigurieren. Es sollte wie Visual Studio geöffnet und ausgeführt werden, aber es wird nicht als localhost ausgeführt, und bei einem Build wird die in der Frage erwähnte Warnung ausgegeben. – Raz

+0

Sie können auch versuchen, die Community-Version von Visual Studio zu verwenden –

Verwandte Themen