dotnet/BenchmarkDotNet

BDN does not respect global.json (?)

Open

#2 512 ouverte le 25 janv. 2024

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)C# (1 054 forks)batch import
help wantedup-for-grabs

Métriques du dépôt

Stars
 (11 415 stars)
Métriques de merge PR
 (Merge moyen 5j 9h) (20 PRs mergées en 30 j)

Description

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?

Guide contributeur