-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
nbgv for dotnetcore3.0 #326
Conversation
I see the issue. The C:\Users\taggac\github\Nerdbank.GitVersioning\src\nerdbank-gitversioning.npm\out\nbgv.cli\tools\netcoreapp2.1\any\runtimes\win-x64 |
|
@tmat in dotnet/sourcelink#267 (comment) made it sound like there is a way to allows dotnet tools to roll forward. Hunting for the correct setting in https://github.com/search?q=org%3Adotnet+roll+forward&type=Issues is probably a good start. |
Looks like we don't need a separate build. The current version works by setting environment variable dotnet/arcade#1907
Now, we just need to figure out how to update |
@@ -0,0 +1,3 @@ | |||
{ | |||
"rollForwardOnNoCandidateFx": 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does the trick!
This adds the {
"runtimeOptions": {
"tfm": "netcoreapp2.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "2.1.0"
},
"rollForwardOnNoCandidateFx": 2
}
} |
src/nbgv/nbgv.csproj
Outdated
@@ -28,7 +28,7 @@ | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<NpmPackageLayout Include="@(_PackageFiles)"> | |||
<TargetPath Condition=" '%(_PackageFiles.PackagePath)' != '' ">$(NpmPackageLayoutDir)$([System.IO.Path]::GetDirectoryName('%(_PackageFiles.PackagePath)'))\%(FileName)%(Extension)</TargetPath> | |||
<TargetPath Condition=" '%(_PackageFiles.PackagePath)' != '' ">$(NpmPackageLayoutDir)%(_PackageFiles.PackagePath)\%(FileName)%(Extension)</TargetPath> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the line that was causing the native
folder to be missing in the newer dotnet SDKs.
This is ready for a squash merge. :-) |
@AArnott, any chance of merging this soon? I saw there were updates to the roll-forward policy for .NET Core 3.0 Preview 5, but not sure that affects this. |
Sorry for the delay. I'm catching up on a big backlog of github notifications and this is the second-to-last one. Reviewing it now. |
@AArnott I downloaded and tested the build. It is working. This shows it working with the 3.0 beta & alpine 3.9. 🎉
|
Awesome. I've pushed 2.3.151 to nuget.org |
Move variable definition script
Replaces #324 to address feedback. Closes #277
The publish step was what solves this error:
By publishing, it works:
I've looked at the diff, but I can't tell you what the root cause is. I just know that
dotnet publish
solves it.Here is a diff: