2017-07-26 66 views
0

我是新来的C#和它的第一个项目,并希望了解完整的代码流。我正在使用sharp IDE 4.4来运行项目。C#项目正在建设,但它不运行

当我运行它,打开本地主机和消息appears- 确保您有正确的网址:http://localhost:52440

输出,当我建立一个项目 -

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

将您的输出平台更改为X86 –

+0

当我生成一个项目时,我收到一个错误 - 没有为项目“ASPV.csproj”设置OutputPath属性。请检查以确保您已为该项目指定了Configuration和Platform的有效组合。配置='发布'平台='X86'。如果某个其他项目试图按照此项目的项目对项目引用,此项目已卸载或未包含在解决方案中,并且引用项目不使用相同或等效项目构建,也可能会出现此错误配置或平台。 – Raz

回答

0

我不t知道你正在使用哪个IDE,但是你想要做一个asp \ mvc站点项目,还是你要在其中运行可执行文件的桌面项目?

如果您正在尝试执行桌面项目并运行它,那么您可能选择了错误的项目类型。如果你想运行一个网站,那么你首先应该看看项目路线和网络配置,看看是否一切顺利。

+0

它是一个web项目,我刚刚在“Sharpdevelop”IDE中打开了一个解决方案,它在Visual Studio中工作得非常好,但由于许可证问题,我尝试在Sharp Develop IDE中配置相同的项目。它应该像在Visual Studio中那样打开并运行,但它不会作为本地主机运行,并且在构建时会抛出我的问题中提到的警告。 – Raz

+0

你也可以尝试使用社区版本的visual studio它可以免费使用 –

相关问题