第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

在構(gòu)建服務(wù)器上找不到Microsoft.WebApplication.你的解決方案是什么?

在構(gòu)建服務(wù)器上找不到Microsoft.WebApplication.你的解決方案是什么?

守著一只汪 2019-09-18 14:38:18
嘗試在構(gòu)建服務(wù)器上構(gòu)建我的項目給出了以下錯誤:Microsoft (R) Build Engine Version 4.0.30319.1error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.幾個月前,我在Build Server上安裝了Visual Studio 2010,解決了這個問題。但是現(xiàn)在我從頭開始設(shè)置一個新的服務(wù)器,我想知道是否有更好的解決方案來解決這個問題。
查看完整描述

3 回答

?
catspeake

TA貢獻(xiàn)1111條經(jīng)驗 獲得超0個贊

要回答問題的標(biāo)題(但不是關(guān)于你得到的輸出的問題):


將以下文件夾從您的開發(fā)計算機復(fù)制到您的構(gòu)建服務(wù)器,如果它只是Web應(yīng)用程序,則會修復(fù)此問題


C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v10.0 \ WebApplications


根據(jù)構(gòu)建中斷的方式刪除x86。如果您有其他項目類型,則可能需要復(fù)制整個msbuild文件夾。


查看完整回答
反對 回復(fù) 2019-09-18
?
郎朗坤

TA貢獻(xiàn)1921條經(jīng)驗 獲得超9個贊

如果未安裝VS,則不支持構(gòu)建和發(fā)布WAP。話雖如此,如果你真的不想安裝VS那么你需要復(fù)制下的所有文件%ProgramFiles32%\MSBuild\Microsoft\。


您還需要安裝Web Deploy Tool。我想就是這樣。


查看完整回答
反對 回復(fù) 2019-09-18
?
慕蓋茨4494581

TA貢獻(xiàn)1850條經(jīng)驗 獲得超11個贊

UPD:從VS2017開始,Build Tools中的工作負(fù)載完全消除了這個問題。請參閱@SOReader答案。


如果您不想在構(gòu)建服務(wù)器上修改任何內(nèi)容,并且仍希望項目能夠直接從源代碼控制中構(gòu)建,那么將所需的二進(jìn)制文件置于源代碼管理之下可能是個好主意。您需要修改項目文件中的imports部分,如下所示:


<Import Project="$(SolutionDir)\BuildTargets\WebApplications\Microsoft.WebApplication.targets" />

<Import Condition="false" Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

第一行是相對于解決方案目錄的新位置的實際導(dǎo)入。第二個是Condition="false"原始行的關(guān)閉版本(),允許Visual Studio仍將您的項目視為有效的Web應(yīng)用程序項目(這是VS 2010 SP1自身的技巧)。


不要忘記復(fù)制源代碼管理下的C:\Program Files (x86)\Microsoft\VisualStudio\v10.0\WebApplicationsto BuildTargets文件夾。


查看完整回答
反對 回復(fù) 2019-09-18
  • 3 回答
  • 0 關(guān)注
  • 1708 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號