简体   繁体   English

升级到Visual Studio 2012.2后,发布网站停止工作

[英]Publish website stopped working after upgrading to Visual Studio 2012.2

Ok, after upgrading my Visual Studio from 2012 to Visual Studio 2012.2 ( http://www.asp.net/vnext ), I cannot publish my website. 好的,将Visual Studio从2012升级到Visual Studio 2012.2( http://www.asp.net/vnext )之后,我无法发布我的网站。

When right clicking on my web project and click "Publish Web Site", I get a different window than I used too. 右键单击我的Web项目并单击“发布网站”时,我得到的窗口与使用的窗口不同。 However, I've set up my publish profile like this: 但是,我已经这样设置了我的发布个人资料:

在此处输入图片说明

Then I get dependency errors, as you can see here (yeah, no discussion about the DropBox physical path, that shouldn't be the problem): 然后我得到依赖项错误,如您在这里看到的(是的,没有关于DropBox物理路径的讨论,这不应该是问题):

在此处输入图片说明

I can easily build the project, and I can also publish when it's publishing to DEBUG mode. 我可以轻松地构建项目,也可以在将其发布为DEBUG模式时进行发布。

You can see my SLN file here, and all the links seem correct. 您可以在这里看到我的SLN文件,所有链接似乎都正确。 The only doubt I have is the Release.AspNetCompiler.TargetPath, as that's the old path it used. 我唯一的疑问是Release.AspNetCompiler.TargetPath,因为这是它使用的旧路径。 :

Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Client", "Client\", "{E9447A39-3F6B-4603-B476-FB72BDB41015}"
    ProjectSection(WebsiteProperties) = preProject
        TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5"
        ProjectReferences = "{92655DFC-29BE-4EEE-A211-E96811E113AA}|GKBusiness.dll;{BFD0BEE2-D00B-4F25-A3D4-D6C5351FA6E4}|GKDatabase.dll;{A4A80063-3996-4B53-992A-0ED1C3D78959}|Utils.dll;{D998D4C0-A7C1-495C-A40B-3926F3CF593A}|MathLibrary.dll;{7F454D7D-8AD6-49A2-88C6-6DD569168618}|Common.dll;"
        Debug.AspNetCompiler.VirtualPath = "/Client"
        Debug.AspNetCompiler.PhysicalPath = "Client\"
        Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\Client\"
        Debug.AspNetCompiler.Updateable = "true"
        Debug.AspNetCompiler.ForceOverwrite = "true"
        Debug.AspNetCompiler.FixedNames = "false"
        Debug.AspNetCompiler.Debug = "True"
        Release.AspNetCompiler.VirtualPath = "/Client"
        Release.AspNetCompiler.PhysicalPath = "Client\"
        Release.AspNetCompiler.TargetPath = "PrecompiledWeb\Client\"
        Release.AspNetCompiler.Updateable = "true"
        Release.AspNetCompiler.ForceOverwrite = "true"
        Release.AspNetCompiler.FixedNames = "false"
        Release.AspNetCompiler.Debug = "False"
        VWDPort = "16481"
        DefaultWebSiteLanguage = "Visual C#"
    EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GKBusiness", "GKBusiness\GKBusiness.csproj", "{92655DFC-29BE-4EEE-A211-E96811E113AA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GKDatabase", "GKDatabase\GKDatabase.csproj", "{BFD0BEE2-D00B-4F25-A3D4-D6C5351FA6E4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utils", "Utils\Utils.csproj", "{A4A80063-3996-4B53-992A-0ED1C3D78959}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MathLibrary", "MathLibrary\MathLibrary.csproj", "{D998D4C0-A7C1-495C-A40B-3926F3CF593A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Common", "Common\Common.csproj", "{7F454D7D-8AD6-49A2-88C6-6DD569168618}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GKTest", "GKTest\GKTest.csproj", "{8BA66640-32FE-4DE1-B527-8986BD3F8713}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2394BF74-243E-4521-9E2C-AEDC2AFB0D97}"
    ProjectSection(SolutionItems) = preProject
        GodeKarakterer.vsmdi = GodeKarakterer.vsmdi
        Local.testsettings = Local.testsettings
        TraceAndTestImpact.testsettings = TraceAndTestImpact.testsettings
    EndProjectSection
EndProject

I really don't have any idea what's wrong. 我真的不知道怎么了。 But I certainly would love to be able to publish my website! 但是我当然很希望能够发布我的网站!

I have tried to restart Visual Studio, rebuild solution, clean the solution and restart the computer. 我试图重新启动Visual Studio,重新生成解决方案,清理解决方案并重新启动计算机。

Thanks Microsoft - I enjoyed the update.. Grrrr! 谢谢微软-我喜欢更新。.Grrrr! :-( :-(

I've had some nasty issues with the publish options in Visual Studio 2012 as well. 我在Visual Studio 2012中的发布选项也遇到了一些讨厌的问题。

A few things you might want to try: 您可能想尝试的几件事:
- Remove the publish profile (also check filesystem). -删除发布配置文件(也检查文件系统)。
- Clean solution. -清洁溶液。
- Close Visual Studio. -关闭Visual Studio。
- Restart your PC (to kill all webserver processes). -重新启动PC(以终止所有Web服务器进程)。
- Clean temp. -清洁温度。 files under C:\\Windows\\Microsoft.Net\\Framework\\. C:\\ Windows \\ Microsoft.Net \\ Framework \\下的文件。
- Start Visual Studio. -启动Visual Studio。
- Build. -建立
- Recreate publish profile. -重新创建发布个人资料。

I guess, you need to abandon Visual Studio 2010 or 11 permanently, and do not uninstall either of them. 我想,您需要永久放弃Visual Studio 201011 ,并且不要卸载其中任何一个。 It seems you'll re-break Visual Studio 2012 if you open a solution in them. 如果您在其中打开解决方案,似乎您将重新破坏Visual Studio 2012

  1. Open the start menu and type "%AppData%" and enter to get to your Application Data Folder . 打开开始菜单,然后输入“%AppData%”,然后输入以进入您的Application Data Folder
  2. Go to the "Roaming" folder if you weren't automatically placed in that folder. 如果您没有自动放置在该文件夹中,请转到“漫游”文件夹。
  3. Open the "Microsoft" folder. 打开“ Microsoft”文件夹。
  4. Open the "VisualStudio" folder. 打开“ VisualStudio”文件夹。
  5. You'll see a folder named "11.0" the VS 2012 folder and also "10.0" the VS 2010 folder. 您将在VS 2012文件夹中看到一个名为“ 11.0”的文件夹,在VS 2010文件夹中也看到一个名为“ 10.0”的文件夹。
  6. Delete or rename the "10.0" folder. 删除或重命名“ 10.0”文件夹。
  7. Delete or rename all the other folders that are not the "11.0" folder. 删除或重命名不是“ 11.0”文件夹的所有其他文件夹。
  8. Restart Visual Studio 2012 . 重新启动Visual Studio 2012

And see if your Visual Studio 2012 will work.. Good luck! 并查看您的Visual Studio 2012是否可以运行。祝您好运!

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

相关问题 Azure MobileServiceClient 在将 Visual Studio 更新到 16.3.7 后停止工作 - Azure MobileServiceClient stopped working after updating Visual Studio to 16.3.7 Visual Studio应用程序在商店中发布之前可以正常工作,而发布后则不可以 - Visual Studio app working before publish on store and not after publishing 从Visual Studio 2015 RC升级到Visual Studio 2015社区RTM后Blend无法正常工作 - Blend is not working after upgrading to Visual Studio 2015 Community RTM from Visual Studio 2015 RC 安装Visual Studio 2015后,Microsoft Visual Studio 2012已停止工作 - Microsoft Visual Studio 2012 has stopped working after installing the visual studio 2015 升级到Visual Studio Update 2后生成错误 - Build error after upgrading to Visual Studio Update 2 升级Visual Studio后Fody编译错误 - Fody compile error after upgrading Visual Studio Visual Studio 2013、2015已停止工作 - Visual Studio 2013, 2015 Has stopped working Intellisense停止在Visual Studio Code和OSX上运行 - Intellisense Stopped Working on Visual Studio Code, OSX 如何在Visual Studio 2008中自动发布构建网站? - How to automatically publish a website on build in Visual Studio 2008? 与使用 MS Visual Studio 上传网站相比,有没有更快的发布网站的方法? - Is there a faster way to publish website compared to uploading it using MS Visual Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM