使用Visual Studio 2010将解决方案文件添加到asp.net 1.1应用程序中

问题描述 投票:4回答:3

我正在尝试将旧的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 soution文件的方法?使用命令行工具?无论如何,解决方案文件有何特别之处?

c# .net asp.net visual-studio web-applications
3个回答
1
投票

您在网站中拥有的文件是否合法?它们位于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

1
投票

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


0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.