2022年10月18日 星期二

[研究][ASP.NET] 找不到匯入的專案 Microsoft.WebApplication.targets。

[研究][ASP.NET] error MSB4019: 找不到匯入的專案 Microsoft.WebApplication.targets。請確認 <Import> 宣告中的路徑正確,而且檔案存在於磁碟上。

2022-10-18 

C:\TEMP>MSBuild.exe /t:Rebuild C:\URLBugDemo5\URLBugDemo.sln
Microsoft (R) Build Engine 版本 4.8.4161.0
[Microsoft .NET Framework,版本 4.0.30319.42000]
Copyright (C) Microsoft Corporation. 著作權所有,並保留一切權利。

在這個方案中一次建置一個專案。若要啟用平行組建,請加入 "/m" 參數。
已經開始建置於 2022/10/17 下午 05:39:18。
節點 1 (Rebuild 目標) 上的專案 "C:\URLBugDemo5\URLBugDemo.sln"。
ValidateSolutionConfiguration:
  建置方案組態 "Debug|Any CPU"。
專案 "C:\URLBugDemo5\URLBugDemo.sln" (1) 正在節點 1 (Rebuild 目標) 上建置 "C:\URLBugDemo5\URLBugDemo\URLBugDemo.csproj" (2)。
C:\URLBugDemo5\URLBugDemo\URLBugDemo.csproj(97,3): error MSB4019: 找不到匯入的專案 "C:\Program Files (x86)\MSBuild\Microsoft\Vi
sualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets"。請確認 <Import> 宣告中的路徑正確,而且檔案存在於磁碟上。
專案 "C:\URLBugDemo5\URLBugDemo\URLBugDemo.csproj" (Rebuild 目標) 建置完成 -- 失敗。

專案 "C:\URLBugDemo5\URLBugDemo.sln" (Rebuild 目標) 建置完成 -- 失敗。


建置失敗。

"C:\URLBugDemo5\URLBugDemo.sln" (Rebuild 目標) (1) ->
"C:\URLBugDemo5\URLBugDemo\URLBugDemo.csproj" (Rebuild 目標) (2) ->
  C:\URLBugDemo5\URLBugDemo\URLBugDemo.csproj(97,3): error MSB4019: 找不到匯入的專案 "C:\Program Files (x86)\MSBuild\Microsoft\
VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets"。請確認 <Import> 宣告中的路徑正確,而且檔案存在於磁碟上。

    0 個警告
    1 個錯誤

經過時間 00:00:00.06

C:\TEMP>

開啟 .csproj 檔案 (本方案的專案檔是 URLBugDemo.csproj ),找到 WebApplication.targets 字串,嘗試註解掉某個或數個,最後發現註解掉下面這行。

<!-- <import project="$(vstoolspath)\webapplications\microsoft.webapplication.targets" condition="'$(vstoolspath)' != ''" />  -->

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

重建成功,如下:  

C:\TEMP>MSBuild.exe /t:Rebuild C:\URLBugDemo5\URLBugDemo.sln
Microsoft (R) Build Engine 版本 4.8.4161.0
[Microsoft .NET Framework,版本 4.0.30319.42000]
Copyright (C) Microsoft Corporation. 著作權所有,並保留一切權利。

在這個方案中一次建置一個專案。若要啟用平行組建,請加入 "/m" 參數。
已經開始建置於 2022/10/18 上午 08:09:26。
節點 1 (Rebuild 目標) 上的專案 "C:\URLBugDemo5\URLBugDemo.sln"。
ValidateSolutionConfiguration:
  建置方案組態 "Debug|Any CPU"。
位於 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\Microsoft.CodeDom.Prov
iders.DotNetCompilerPlatform.props (9,75)" 之 BeforeTargets 屬性中所列的目標 "PipelineCollectFilesPhase" 不存在於專案中 ,將會被忽略。
專案 "C:\URLBugDemo5\URLBugDemo.sln" (1) 正在節點 1 (Rebuild 目標) 上建置 "C:\URLBugDemo5\URLBugDemo\URLBugDemo.csproj" (2)。
專案檔包含 ToolsVersion="15.0"。這個工具組可能未知或遺失,在這種情況下,也許可以安裝適當的 MSBuild 版本來解決這個問題, 或者組建可能因為原則的緣故,而強制為特定的 ToolsVersion。將專案視為具有 To
olsVersion="4.0"。如需詳細資訊,請參閱 http://go.microsoft.com/fwlink/?LinkId=291333。
CoreClean:
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\URLBugDemo.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\URLBugDemo.pdb"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\csc.exe"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\csc.exe.config"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\csc.rsp"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\csi.exe"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\csi.exe.config"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\csi.rsp"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\Microsoft.Build.Tasks.CodeAnalysis.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\Microsoft.CodeAnalysis.CSharp.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\Microsoft.CodeAnalysis.CSharp.Scripting.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\Microsoft.CodeAnalysis.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\Microsoft.CodeAnalysis.Scripting.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\Microsoft.CodeAnalysis.VisualBasic.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\Microsoft.CSharp.Core.targets"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\Microsoft.DiaSymReader.Native.amd64.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\Microsoft.DiaSymReader.Native.x86.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\Microsoft.Managed.Core.targets"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\Microsoft.VisualBasic.Core.targets"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.AppContext.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Collections.Immutable.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Console.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Diagnostics.FileVersionInfo.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Diagnostics.StackTrace.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.IO.Compression.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.IO.FileSystem.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.IO.FileSystem.Primitives.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.IO.Pipes.AccessControl.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.IO.Pipes.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Reflection.Metadata.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Security.AccessControl.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Security.Claims.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Security.Cryptography.Algorithms.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Security.Cryptography.Encoding.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Security.Cryptography.Primitives.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Security.Cryptography.X509Certificates.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Security.Principal.Windows.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Text.Encoding.CodePages.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.ValueTuple.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Xml.ReaderWriter.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Xml.XmlDocument.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Xml.XPath.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\System.Xml.XPath.XDocument.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\vbc.exe"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\vbc.exe.config"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\vbc.rsp"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\VBCSCompiler.exe"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\roslyn\VBCSCompiler.exe.config"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\obj\Debug\URLBugDemo.dll"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\obj\Debug\URLBugDemo.pdb"。
  正在刪除檔案 "C:\URLBugDemo5\URLBugDemo\obj\Debug\URLBugDemo.csprojResolveAssemblyReference.cache"。
GenerateTargetFrameworkMonikerAttribute:
將略過目標 "GenerateTargetFrameworkMonikerAttribute",因為所有輸出檔對於其輸入檔而言都已更新。
CoreCompile:
  C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /war
  n:4 /define:DEBUG;TRACE /highentropyva+ /reference:C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompiler
  Platform.2.0.0\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll /reference:"C:\Program Files (x86)\Re
  ference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\Microsoft.CSharp.dll" /reference:"C:\Program Files (x86)\
  Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\mscorlib.dll" /reference:"C:\Program Files (x86)\Refere
  nce Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.ComponentModel.DataAnnotations.dll" /reference:"C:\Pro
  gram Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Configuration.dll" /reference:"
  C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Core.dll" /reference:"C:\
  Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Data.DataSetExtensions.dll"
  /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Data.dll" /re
  ference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.dll" /reference:
  "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Drawing.dll" /reference:
  "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.EnterpriseServices.dll"
  /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Web.Applicati
  onServices.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\Syst
  em.Web.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.W
  eb.DynamicData.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\
  System.Web.Entity.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7
  .2\System.Web.Extensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramewo
  rk\v4.7.2\System.Web.Services.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFr
  amework\v4.7.2\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramew
  ork\v4.7.2\System.Xml.Linq.dll" /debug+ /debug:full /optimize- /out:obj\Debug\URLBugDemo.dll /subsystemversion:6.00 /
  target:library /utf8output Default.aspx.cs Default.aspx.designer.cs Properties\AssemblyInfo.cs "C:\Users\Administrato
  r\AppData\Local\Temp\.NETFramework,Version=v4.7.2.AssemblyAttributes.cs"
_CopyFilesMarkedCopyLocal:
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\lib\net45\Microsoft.CodeDom.
  Providers.DotNetCompilerPlatform.dll" 複製到 "bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\lib\net45\Microsoft.CodeDom.
  Providers.DotNetCompilerPlatform.xml" 複製到 "bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml"。
CopyFilesToOutputDirectory:
  正在將檔案從 "obj\Debug\URLBugDemo.dll" 複製到 "bin\URLBugDemo.dll"。
  URLBugDemo -> C:\URLBugDemo5\URLBugDemo\bin\URLBugDemo.dll
  正在將檔案從 "obj\Debug\URLBugDemo.pdb" 複製到 "bin\URLBugDemo.pdb"。
CopyRoslynCompilerFilesToOutputDirectory:
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\csc.exe" 複製到 "bin\\roslyn\csc.exe"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\csc.exe.config" 複製到 "bin\\roslyn\csc.exe.config"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\csc.rsp" 複製到 "bin\\roslyn\csc.rsp"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\csi.exe" 複製到 "bin\\roslyn\csi.exe"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\csi.exe.config" 複製到 "bin\\roslyn\csi.exe.config"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\csi.rsp" 複製到 "bin\\roslyn\csi.rsp"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\Microsoft.Build.Tasks.CodeAnalysis.dll" 複製到 "bin\\roslyn\Microsoft.Build.Tasks.CodeAnalysis.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\Microsoft.CodeAnalysis.CSharp.dll" 複製到 "bin\\roslyn\Microsoft.CodeAnalysis.CSharp.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\Microsoft.CodeAnalysis.CSharp.Scripting.dll" 複製到 "bin\\roslyn\Microsoft.CodeAnalysis.CSharp.Scripting.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\Microsoft.CodeAnalysis.dll" 複製到 "bin\\roslyn\Microsoft.CodeAnalysis.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\Microsoft.CodeAnalysis.Scripting.dll" 複製到 "bin\\roslyn\Microsoft.CodeAnalysis.Scripting.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\Microsoft.CodeAnalysis.VisualBasic.dll" 複製到 "bin\\roslyn\Microsoft.CodeAnalysis.VisualBasic.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\Microsoft.CSharp.Core.targets" 複製到 "bin\\roslyn\Microsoft.CSharp.Core.targets"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\Microsoft.DiaSymReader.Native.amd64.dll" 複製到 "bin\\roslyn\Microsoft.DiaSymReader.Native.amd64.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\Microsoft.DiaSymReader.Native.x86.dll" 複製到 "bin\\roslyn\Microsoft.DiaSymReader.Native.x86.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\Microsoft.Managed.Core.targets" 複製到 "bin\\roslyn\Microsoft.Managed.Core.targets"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\Microsoft.VisualBasic.Core.targets" 複製到 "bin\\roslyn\Microsoft.VisualBasic.Core.targets"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.AppContext.dll" 複製到 "bin\\roslyn\System.AppContext.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Collections.Immutable.dll" 複製到 "bin\\roslyn\System.Collections.Immutable.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Console.dll" 複製到 "bin\\roslyn\System.Console.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Diagnostics.FileVersionInfo.dll" 複製到 "bin\\roslyn\System.Diagnostics.FileVersionInfo.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Diagnostics.StackTrace.dll" 複製到 "bin\\roslyn\System.Diagnostics.StackTrace.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.IO.Compression.dll" 複製到 "bin\\roslyn\System.IO.Compression.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.IO.FileSystem.dll" 複製到 "bin\\roslyn\System.IO.FileSystem.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.IO.FileSystem.Primitives.dll" 複製到 "bin\\roslyn\System.IO.FileSystem.Primitives.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.IO.Pipes.AccessControl.dll" 複製到 "bin\\roslyn\System.IO.Pipes.AccessControl.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.IO.Pipes.dll" 複製到 "bin\\roslyn\System.IO.Pipes.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Reflection.Metadata.dll" 複製到 "bin\\roslyn\System.Reflection.Metadata.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Security.AccessControl.dll" 複製到 "bin\\roslyn\System.Security.AccessControl.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Security.Claims.dll" 複製到 "bin\\roslyn\System.Security.Claims.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Security.Cryptography.Algorithms.dll" 複製到 "bin\\roslyn\System.Security.Cryptography.Algorithms.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Security.Cryptography.Encoding.dll" 複製到 "bin\\roslyn\System.Security.Cryptography.Encoding.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Security.Cryptography.Primitives.dll" 複製到 "bin\\roslyn\System.Security.Cryptography.Primitives.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Security.Cryptography.X509Certificates.dll" 複製到 "bin\\roslyn\System.Security.Cryptography.X509Certifi
  cates.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Security.Principal.Windows.dll" 複製到 "bin\\roslyn\System.Security.Principal.Windows.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Text.Encoding.CodePages.dll" 複製到 "bin\\roslyn\System.Text.Encoding.CodePages.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.ValueTuple.dll" 複製到 "bin\\roslyn\System.ValueTuple.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Xml.ReaderWriter.dll" 複製到 "bin\\roslyn\System.Xml.ReaderWriter.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Xml.XmlDocument.dll" 複製到 "bin\\roslyn\System.Xml.XmlDocument.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Xml.XPath.dll" 複製到 "bin\\roslyn\System.Xml.XPath.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\System.Xml.XPath.XDocument.dll" 複製到 "bin\\roslyn\System.Xml.XPath.XDocument.dll"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\vbc.exe" 複製到 "bin\\roslyn\vbc.exe"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\vbc.exe.config" 複製到 "bin\\roslyn\vbc.exe.config"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\vbc.rsp" 複製到 "bin\\roslyn\vbc.rsp"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\VBCSCompiler.exe" 複製到 "bin\\roslyn\VBCSCompiler.exe"。
  正在將檔案從 "C:\URLBugDemo5\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\build\net46\..\..\tools\rosl
  ynlatest\VBCSCompiler.exe.config" 複製到 "bin\\roslyn\VBCSCompiler.exe.config"。
專案 "C:\URLBugDemo5\URLBugDemo\URLBugDemo.csproj" (Rebuild 目標) 建置完成。

專案 "C:\URLBugDemo5\URLBugDemo.sln" (Rebuild 目標) 建置完成。


建置成功。
    0 個警告
    0 個錯誤

經過時間 00:00:00.81

C:\TEMP>

或加入正確的


<Import Project="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />

xxxxx

(完)

沒有留言:

張貼留言