【问题标题】:Adding a solution file to asp.net 1.1 application using Visual Studio 2010使用 Visual Studio 2010 将解决方案文件添加到 asp.net 1.1 应用程序
【发布时间】:2011-05-17 22:50:57
【问题描述】:

我正在尝试将旧的 asp.net 1.1 应用程序迁移到新的 .net 4.0 框架。这方面有很好的指南 (https://docs.microsoft.com/en-us/archive/msdn-magazine/2010/september/app-migration-migrate-your-asp-net-1-1-apps-to-visual-studio-2010)。但是,所有方法都假设 1.1 项目包含一个必须使用 VS 2010 打开并通过转换向导的解决方案文件。

就我而言,该项目没有任何解决方案文件,这给了我一种先有鸡还是先有蛋的问题。

有没有办法在有或没有 VS 2010 的情况下添加 1.1 .net 解决方案文件?使用命令行工具?无论如何,解决方案文件有什么特别之处?

【问题讨论】:

  • 配置地狱、重载地狱、框架地狱、版本控制地狱、dll地狱 :(

标签: c# .net asp.net visual-studio web-applications


【解决方案1】:

只需打开 ASP.NET 1.1 项目文件。将创建一个解决方案文件。

【讨论】:

  • 应用程序也没有项目文件。
  • 抱歉,这不是真的。您可能丢失了项目文件,但没有项目文件就无法拥有 ASP.NET Web 应用程序。
【解决方案2】:

您在网站上的文件是否已经存在?它们是否位于 C:\Inetpub\wwwroot\[SITE_FOLDER]?

这个网站也可能会有所帮助。 http://ondotnet.com/pub/a/dotnet/excerpt/vshacks_chap1/index.html?page=4

这是一个示例解决方案:

Microsoft Visual Studio Solution File, Format Version 7.0
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "C:\...\WebSite1\", "..\..\WebSites\WebSite1", "{A3EF0D1E-ABC0-4A4F-851F-EBC56FDF2C53}"
    ProjectSection(WebsiteProperties) = preProject
        Debug.AspNetCompiler.VirtualPath = "/WebSite1"
        Debug.AspNetCompiler.PhysicalPath = "..\..\WebSites\WebSite1\"
        Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\WebSite1\"
        Debug.AspNetCompiler.Updateable = "true"
        Debug.AspNetCompiler.ForceOverwrite = "true"
        Debug.AspNetCompiler.FixedNames = "false"
        Debug.AspNetCompiler.Debug = "True"
        Release.AspNetCompiler.VirtualPath = "/WebSite1"
        Release.AspNetCompiler.PhysicalPath = "..\..\WebSites\WebSite1\"
        Release.AspNetCompiler.TargetPath = "PrecompiledWeb\WebSite1\"
        Release.AspNetCompiler.Updateable = "true"
        Release.AspNetCompiler.ForceOverwrite = "true"
        Release.AspNetCompiler.FixedNames = "false"
        Release.AspNetCompiler.Debug = "False"
        VWDPort = "2220"
        DefaultWebSiteLanguage = "Visual Basic"
    EndProjectSection
EndProject
Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug|.NET = Debug|.NET
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
        {A3EF0D1E-ABC0-4A4F-851F-EBC56FDF2C53}.Debug|.NET.ActiveCfg = Debug|.NET
        {A3EF0D1E-ABC0-4A4F-851F-EBC56FDF2C53}.Debug|.NET.Build.0 = Debug|.NET
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
        HideSolutionNode = FALSE
    EndGlobalSection
EndGlobal

【讨论】:

  • 感谢您指出这篇文章。我会修改这些文件,看看它会把我带到哪里。
【解决方案3】:

您也许可以在 VS 2010 中创建一个新的解决方案,然后将 1.1 项目导入到该解决方案中。

【讨论】:

  • 不幸的是,VS 2010/2008/2005 无法处理 .NET 1.1 。与 .NET 1.1 一起工作的 VS 2003 无法安装在 Win 7/Vista 工作站上。可以使用虚拟机并在其上运行 XP 和 VS 2003,但我正在寻找其他替代方案。
  • @Dhruv:不,他们无法处理 .NET 1.1,但您不希望他们处理它。您希望他们处理您为 .NET 1.1 编写的代码。只需创建一个新项目,将文件复制到项目文件夹中,在“项目”菜单中选择“显示所有文件”,然后将文件包含在您的项目中。
猜你喜欢
  • 2015-10-20
  • 1970-01-01
  • 1970-01-01
  • 2011-05-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-04-06
相关资源
最近更新 更多