New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template has hardcoded netcoreapp3.0 TFM #1512
Comments
Some additional findings; the $ dotnet new benchmark --console-app -n MathBenchmarks -f netcoreapp3.1 # or net5.0
# still produces csproj with TargetFramework set to netcoreapp3.0
# while the library project (without --console-app argument)
$ dotnet new benchmark -n MathBenchmarks -f netcoreapp3.1 # or net5.0
# produces csproj with the expected TargetFramework value |
I just took a look at the templates and I agree that they should be updated and also simplified. I've marked the issue as up-for-grabs. |
I've just checked the .csproj file generated at \Source\Tests\Benchmarks\bin\Release\1c6b7b7c-c006-4660-9342-ea8aef01ff6f\BenchmarkDotNet.Autogenerated.csproj, looks like it's ok:
Am I missing something or the issue is already solved? |
This issue is about benchmark dotnet template https://www.nuget.org/packages/BenchmarkDotNet.Templates/, which was last updated eight months ago. It still creates a new console project with |
Line 3 in e72ddfb
|
Got it, thank you. I'm new to BDN, I thought this template is used to generate that csproj I sent before. |
hi @adamsitnik . I would like to contribute, can you please assign this to me. cheers. and Happy new year. |
@ExceptionCaught done, thank you! |
Fixed by #1630 |
Using dotnet 5.0 preview 8, the template produces netcoreapp3.0 hardcoded csproj:
$ dotnet new --version 5.0.100-preview.8.20362.3 $ dotnet new --install BenchmarkDotNet.Templates::0.12.1 $ dotnet new benchmark --console-app -n MathBenchmarks $ cd MathBenchmarks $ head -3 MathBenchmarks.csproj
outputs:
running it with
dotnet run
gives:running after fixing csproj by hand, by replacing netcoreapp3.0 with net5.0, results in the following exception:
In addition to net5.0 support; ideally, BDN's template (like many other templates available on nuget) should use the latest TFM supported by executing
dotnet
process (3.1 or 5.0, instead of fixed 3.0).The text was updated successfully, but these errors were encountered: