ctaggart / SourceLink

Source Code On Demand
MIT License
356 stars 55 forks source link

3.0 support #380

Closed danmoseley closed 5 years ago

danmoseley commented 5 years ago

I have only 3.0 preview4 installed.

C:\dotnet>dotnet tool install --global sourcelink
Since you just installed the .NET Core SDK, you will need to reopen the Command Prompt window before running the tool you installed.
You can invoke the tool using the following command: sourcelink
Tool 'sourcelink' (version '3.0.0') was successfully installed.
…
C:\dotnet>sourcelink
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '2.1.0' was not found.
  - The following frameworks were found:
      3.0.0-preview4-27615-11 at [C:\Program Files\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

Is there a way to make it work on 3.0 (without requiring 2.1)

danmoseley commented 5 years ago

ie, enable roll forward.

ctaggart commented 5 years ago

There is a workaround to set the environment variable DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX=2. The fix is straight forward as well. See https://github.com/AArnott/Nerdbank.GitVersioning/pull/326

https://github.com/AArnott/Nerdbank.GitVersioning/pull/326

ctaggart commented 5 years ago

Just pushed 3.1.1

danmoseley commented 5 years ago

Thanks!