dotnet/BenchmarkDotNet

BDN does not respect global.json (?)

Open

#2512 aperta il 25 gen 2024

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)C# (1054 fork)batch import
help wantedup-for-grabs

Metriche repository

Star
 (11.415 star)
Metriche merge PR
 (Merge medio 5g 9h) (20 PR mergiate in 30 g)

Descrizione

We are using the prerelease of VS (Version 17.9.0 Preview 4.0). Our ennvironment is working with Directory.Build.props which was a problem for a longer time but has been solved recently. Now we wanted to give it another try, but now we are getting a problem with the prerelease. Although are global.json is set to not use prepreleases

{
	"sdk": {
		"allowPrerelease": false
	}
}

We are getting this error:

 MSBuild version 17.9.0-preview-23618-08+82d381eb2 for .NET
C:\Program Files\dotnet\sdk\8.0.200-preview.23624.5\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-po

According to some other post I updated the nuget source to the current upstream of BDN:

<add key="bdn-ci" value="https://ci.appveyor.com/nuget/benchmarkdotnet" />

Then I get:

MSBuild version 17.8.3+195e7f5a3 for .NET

which is a bit weird because I thought that if things are newer they can work with the newer version. But this is not my problem, the autogenerated project cannot be build.

CSC : error CS0006: Metadata file 'E:\TFS\IPIPE\_Build\obj\ipipe.Core.ArrayMaths.Benchmark\Release\ref\ipipe.Core.ArrayMaths.Benchmark.dll' could not be found [E:\TFS\IPIPE\_Build\Release\Assemblies\ipipe.Core.ArrayMaths.Benchmark\931474bc-6af3-4a5f-b1ed-f4f0043febe1\BenchmarkDotNet.Autogenerated.csproj]

But when go there and build the project manually with dotnet run/build it works.

Is there any suggestion?

Guida contributor