Closed gfoidl closed 5 years ago
To test the following docker images will be used:
mcr.microsoft.com/dotnet/core/sdk:3.0
mcr.microsoft.com/dotnet/core/sdk:2.2
mcr.microsoft.com/dotnet/core/sdk:2.1
2.2 and 2.1 run w/o any problems.
3.0 has the problem with version rollforward, as the tool is produced with a newer preview SDK than the one available in the docker images.
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '3.0.0-preview7-27805-02' was not found.
- The following frameworks were found:
3.0.0-preview6-27804-01 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The .NET Core frameworks can be found at:
- https://aka.ms/dotnet-download
One possible solution is to edit the *.runtimeconfig.json and add as version `3.0.0-preview1", so it will roll forward, but it's quite hacky.
But...this is from my local machine, where the newer SDK is installed. If deployed via CI, then the SDK should match and it should work (if the same or a newer SDK is present).
it should work
Confirmed with https://www.myget.org/feed/gfoidl/package/nuget/trx2junit/1.2.5-preview-1 (first preview with .NET Core 3.0 support) and mcr.microsoft.com/dotnet/core/sdk:3.0
.
v1.2.5 will add support for .NET Core 3.0, which is currently in preview (and that's the problem :wink:).
Check if
trx2junit
runs correclty on