Skip to content

Build from source error MSB4036: The "GenerateFileFromTemplate" task was not found. #48629

@CwjXFH

Description

@CwjXFH

Hi,

I build 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\8.0.100-preview.5.23275.15" directory.

How can I solve this problem, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions