我正在尝试迁移旧的asp.net 1.1应用程序以定位新的.net 4.0框架。这里有很好的指南(http://msdn.microsoft.com/en-us/magazine/ff956194.aspx)。但是,所有方法都假设1.1项目包含一个解决方案文件,必须使用VS 2010打开并通过转换向导。
在我的情况下,该项目没有任何解决方案文件,给我一种鸡和蛋的问题。
有没有办法在有或没有VS 2010的情况下添加1.1 .net文件?使用命令行工具?无论如何,解决方案文件有什么特别之处?
答案 0 :(得分: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 :(得分:1)
只需打开ASP.NET 1.1项目文件即可。将创建一个解决方案文件。
答案 2 :(得分:0)
您可以在VS 2010中创建新解决方案,然后将1.1项目导入解决方案。