[英]What is the functional difference between ASP.NET websites displaying these two icons in Visual Studio solution explorer?
What's the functional difference between projects that use these two icons in Visual Studio? 在Visual Studio中使用这两个图标的项目之间的功能区别是什么? Are there limitations to one type of website vs the other?
一种网站与另一种网站有限制吗?
One of my organization's older websites has this: 我组织的较旧网站之一具有以下功能:
The newer websites have this: 较新的网站具有以下功能:
Right of the bat, I noticed there is no References
list in the solution explorer for the older website. 马上,我注意到在解决方案资源管理器中没有较旧网站的“
References
列表。 Additionally, I'm struggling to have standalone .cs
files be usable elsewhere in the project with using
statements. 另外,我正在努力使独立的
.cs
文件可通过using
语句在项目中的其他地方using
。
It seems your older website is built on ASP.NET Empty Website template, while the new one uses Webforms project template. 看来您的旧网站是建立在ASP.NET空网站模板上的,而新网站则使用Webforms项目模板。 So in the second case you would have a basic setup for the project including references, defined structure, starting sites etc. You could read more below about the differences:
因此,在第二种情况下,您将对该项目进行基本设置,包括引用,定义的结构,起始站点等。您可以在下面阅读有关差异的更多信息:
ASP.NET Web Site or ASP.NET Web Application? ASP.NET网站还是ASP.NET Web应用程序?
As you miss references, it might not be possible to do certain imports, but in either case you can add References from menu Project ... Add Reference 当您错过引用时,可能无法进行某些导入,但是在两种情况下,都可以从“项目”菜单中添加“引用”。
https://msdn.microsoft.com/en-us/library/7314433t%28v=vs.90%29.aspx https://msdn.microsoft.com/zh-CN/library/7314433t%28v=vs.90%29.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.