I tried to use the newer MSBuild Task project. It works if I build my project via Visual Studio but it failed if I try to run it via dotnet build.
The following error message was shown:
Failed to run CodegenCS Template 'xxx\CodegenCS-master\Samples\MSBuild1\Template2.csx': 'CodegenCS - error running template: Can't create abstract type CodegenCS.ICodegenOutputFile' [xxx\CodegenCS-master\Samples\MSBuild1\MSBuild1.csproj]
I have the same error for my project and the sample project. Currently tested using .Net SDK 8
I tried to use the newer MSBuild Task project. It works if I build my project via Visual Studio but it failed if I try to run it via dotnet build. The following error message was shown:
Failed to run CodegenCS Template 'xxx\CodegenCS-master\Samples\MSBuild1\Template2.csx': 'CodegenCS - error running template: Can't create abstract type CodegenCS.ICodegenOutputFile' [xxx\CodegenCS-master\Samples\MSBuild1\MSBuild1.csproj]
I have the same error for my project and the sample project. Currently tested using .Net SDK 8