久久国产亚洲日韩一本,欧美日韩专区国产精品,久久精品成人欧美大片,久久久久久久岛国免费AV,亚洲欧洲精品一区二区

新聞建站cms系統、政府cms系統定制開發

廣州網站建設公司-閱速公司

asp.net新聞發布系統、報紙數字報系統方案
/
http://www.ainiby.com/
廣州網站建設公司
您當前位置:首頁>ASP.NET MVC

ASP.NET MVC

vs2022升級舊項目并發布時:Microsoft.WebTools.Shared.Exceptions.WebToolsException: 生成失敗

發布時間:2023/11/14 17:06:57  作者:Admin  閱讀:993  

廣告:

日志提示:

System.AggregateException: 發生一個或多個錯誤。 ---> Microsoft.WebTools.Shared.Exceptions.WebToolsException: 生成失敗。

錯誤提示:

無法發布-舊項目升級到vs2022發布時出現:該項目中不存在目標“GatherAllFilesToPublish”

一、添加引用:<Reference Include="Microsoft.CSharp" />

二、把 *.csproj 里面內容,換成:

<PropertyGroup>
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
</PropertyGroup>

換成:

<PropertyGroup>
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>

三、把 *.csproj 里面內容二行,中間加一行:

<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />

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

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

廣告:

相關文章
WebToolsException
生成失敗
cms新聞系統購買咨詢
掃描關注 廣州閱速軟件科技有限公司
掃描關注 廣州閱速科技
主站蜘蛛池模板: 新河县| 桑日县| 茶陵县| 探索| 南靖县| 博客| 沛县| 交口县| 奉贤区| 双峰县| 东阿县| 威海市| 镇雄县| 建阳市| 康马县| 沁水县| 遂川县| 玛多县| 新竹市| 沅陵县| 民勤县| 西宁市| 平顶山市| 牙克石市| 波密县| 伊春市| 荆州市| 齐河县| 绥德县| 康乐县| 理塘县| 合山市| 凯里市| 丹寨县| 沿河| 广河县| 娄底市| 盖州市| 沾益县| 崇阳县| 元阳县|