Build ASP.NET Core from source error MSB4036: The "GenerateFileFromTemplate" task was not found

huangapple go评论54阅读模式
英文:

Build ASP.NET Core from source error MSB4036: The "GenerateFileFromTemplate" task was not found

问题

我在 win11 上构建了 ASP.NET Core 的 源代码主分支。执行 restore.cmd 出现错误:

aspnetcore\eng\tools\GenerateFiles\GenerateFiles.csproj(37,5): error MSB4036: The "GenerateFileFromTemplate" task was not found. Check the following: 1.) The name of
the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <Usin
gTask> in the project file, or in the *.tasks files located in the "C:\Users\chiwenjun\Documents\Sources\github\aspnetcore\.dotnet\sdk.0.100-preview.5.23275.15" directory.

请问如何解决这个问题,谢谢!

英文:

I build ASP.NET Core from the source, main branch on win11. I execute restore.cmd got an error:

aspnetcore\eng\tools\GenerateFiles\GenerateFiles.csproj(37,5): error MSB4036: The "GenerateFileFromTemplate" task was not found. Check the following: 1.) The name of
the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <Usin
gTask> in the project file, or in the *.tasks files located in the "C:\Users\chiwenjun\Documents\Sources\github\aspnetcore\.dotnet\sdk.0.100-preview.5.23275.15" directory.

How can I solve this problem, thanks!

答案1

得分: 1

我已解决了这个问题,并将其记录在github

英文:

I have solved the problem and recorded it at github

huangapple
  • 本文由 发表于 2023年6月6日 10:58:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76411179.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定