好吧,在將我的Visual Studio從2012升級到Visual Studio 2012.2(http://www.asp.net/vnext)後,我無法發佈我的網站。升級到Visual Studio 2012.2後發佈網站停止工作
右鍵單擊我的web項目並單擊「發佈網站」時,我會看到一個不同於我使用的窗口。不過,我已經建立了我的發佈配置是這樣的:
然後我得到的相關性錯誤,因爲你可以在這裏看到(是的,沒有關於Dropbox的物理路徑的討論,這不應該是問題):
我可以輕鬆地構建該項目,當它發佈到調試模式,我還可以發佈。
你可以在這裏看到我的SLN文件,所有的鏈接看起來都是正確的。我唯一的疑問是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
我真的沒有任何想法是錯誤的。但我當然希望能夠發佈我的網站!
我試圖重新啓動Visual Studio,重建解決方案,清理解決方案並重新啓動計算機。
謝謝微軟 - 我喜歡更新.. Grrrr! :-(
您是否已將所有外部參考(DLL)複製到由Visual Stuio 2012創建的新文件夾中? – Obama
@Obama:什麼新文件夾? :-)沒有東西被複制到我在VS中提供的路徑中。 –
好吧,所以嘗試重新加載引用再次導致Dropbox上的共享文件夾可以導致問題:) – Obama