Ban*_*ara 1 asp.net msbuild precompile
我正在使用以下命令在启用预编译的情况下使用 msbuild 编译项目
msbuild C:\WebGoat.NET-master\WebGoat\WebGoat.NET.csproj /p:OutputPath=bin /p:DeployOnBuild=true /p:WebPublishMethod="FileSystem";PrecompileBeforePublish=true;EnableUpdateable=false;DebugSymbols=true / p:UseMerge=true;WDPMergeOption="MergeAllOutputsToASingleAssembly";SingleAssemblyName="ContosoWebPrecompiled"
构建失败并显示以下错误消息
“C:\WebGoat.NET-master\WebGoat\WebGoat.NET.csproj”(默认目标)(1) -> (GenerateAssemblyInfoFromExistingAssembleInfo 目标) ->
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14。 0\Web\Transform\Microsoft.Web.Publishing.AspNetCompileMerge .targets(289,5): 错误:@(_AspNetCompile_AssemblyInfo_Count) 在集合中有 0 个项目。它应该只有 1 个条目。[C:\WebGoat.NET-master\WebGoat\WebGoat.NET.csproj] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Transform\Microsoft.Web.Publishing.AspNetCompileMerge .targets (296,5): 错误:目标 GenerateAssemblyInfoFromExistingAssembleInfo 失败 [C:\WebGoat.NET-master\WebGoat\WebG oat.NET.csproj]
请帮我解决这个问题。
小智 5
您的 Properties 文件夹中缺少 AssemblyInfo.cs。
使用 Visual Studio - 解决方案资源管理器 - 属性右键单击 - 添加新项目 - 程序集信息文件添加此文件。
| 归档时间: |
|
| 查看次数: |
1427 次 |
| 最近记录: |