简体   繁体   English

是否可以使用VS.NET 2008构建.NET 1.1应用程序?

[英]Is it possible to build .NET 1.1 apps with VS.NET 2008?

I'm going to maintain an existing .NET 1.1 app for my client. 我将为我的客户端维护一个现有的.NET 1.1应用程序。 VS.NET 2008 seems not to be able to build .NET 1.1 projects out-of-the-box but I don't want to install VS.NET 2003 just for this particular project. VS.NET 2008似乎无法直接构建.NET 1.1项目,但我不想仅为此特定项目安装VS.NET 2003。 Is it possible to use VS.NET 2008 for .NET 1.1 development? 是否可以将VS.NET 2008用于.NET 1.1开发? How? 怎么样?

In my experience, quick answer is "no". 以我的经验,快速答案是“否”。 I strongly suggest you install VS.Net 2003 as it happily co-exists with 2008 (We do that on all our machines here). 我强烈建议您安装VS.Net 2003,因为它很高兴与2008共存(我们在这里的所有计算机上都这样做)。

Even if you got it to build in 2008 from the command line, you'll still miss all the IntelliSense and wizards. 即使您是从命令行在2008年构建它的,您仍然会错过所有IntelliSense和向导。

According to Luke H's blog, no: 根据Luke H的博客,没有:

No - Visual Studio 2008 will not support targeting .Net Framework 1.1. 否-Visual Studio 2008将不支持定位.Net Framework 1.1。 This is something we really wanted to be able to support - since we know there are a lot of .NET developers working on .NET 1.1 applications. 这是我们真正想要能够支持的东西-因为我们知道有很多.NET开发人员在.NET 1.1应用程序上工作。 However, it would have been significantly more difficult to go back and support .NET 1.1 which was a substantially different runtime. 但是,返回并支持.NET 1.1则要困难得多,.NET 1.1是一个完全不同的运行时。

Thus, to fit in this release, the decision ended up being either to not support multitargeting at all - or to support only targeting .NET2.0 and greater. 因此,为了适应此发行版,最终决定要么完全不支持多目标,要么仅支持目标.NET2.0及更高版本。 Because we really wanted Visual Studio 2008 to be a great tool for at least both .NET 3.0 and .NET 3.5 - we decided to put in the most multitargeting support we could fit in this release. 因为我们确实希望Visual Studio 2008成为至少适用于.NET 3.0和.NET 3.5的出色工具,所以我们决定提供此发行版中可以提供的最多目标的支持。

http://blogs.msdn.com/lukeh/archive/2007/06/29/net-framework-multitargeting-in-visual-studio-2008-aka-orcas.aspx#3627411 http://blogs.msdn.com/lukeh/archive/2007/06/29/net-framework-multitargeting-in-visual-studio-2008-aka-orcas.aspx#3627411

如果确实需要使用1.1,则只需确保不使用任何2.0功能(例如泛型和大量其他好东西),然后使用1.1目录中的csc.exe或vbc.exe编译器进行编译。

I posted a similar question recently about upgrading an ASP.NET 1.1 project to 3.5, and ended up deciding to upgrade the project to VS 2008, just using an import wizard. 最近发布了一个类似的问题,关于将ASP.NET 1.1项目升级到3.5,最终决定仅使用导入向导将项目升级到VS 2008。 The process was surprisingly simple; 这个过程非常简单。 in my case, with a relatively straightforward Web project consisting of a few dozen Web forms, the process took only a couple of minutes, and I was relieved not to have encountered a single exception in testing afterward. 以我为例,由于一个相对简单的Web项目(由几十个Web表单组成),该过程只花了几分钟,而后来在测试中没有遇到任何例外,让我感到宽慰。

If your code matches certain requirements, 如果您的代码符合某些要求,

  1. No partial, 不偏不倚,
  2. No generics, 没有泛型,
  3. ...... ......

You may try out MSBee here 您可以在这里尝试MSBee

http://www.codeplex.com/MSBee http://www.codeplex.com/MSBee

It would be very complicated while installing VS2003 is a much easier option. 当安装VS2003是一个更容易的选择时,这将非常复杂。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM