Skip to content

Update .NET Core Sdk version #1692

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

Closed
wants to merge 3 commits into from
Closed

Conversation

ajaybhargavb
Copy link
Contributor

Without this update we get errors during build locally like,

 error NU5128: Some target frameworks declared in the dependencies group of the nuspec and the lib/ref folder do not have exact matches in the other location. Consult the l ist of actions below: [C:\GitHub\aspnet\AspNetCore-Tooling\src\Razor\src\RazorPageGenerator\RazorPageGenerator.csproj]
 error NU5128: - Add a dependency group for .NETCoreApp5.0 to the nuspec [C:\GitHub\aspnet\AspNetCore-Tooling\src\Razor\src\RazorPageGenerator\RazorPageGenerator.csproj]
 error NU5128: - Add lib or ref assemblies for the net50 target framework [C:\GitHub\aspnet\AspNetCore-Tooling\src\Razor\src\RazorPageGenerator\RazorPageGenerator.csproj]
 error NU5128: Some target frameworks declared in the dependencies group of the nuspec and the lib/ref folder do not have exact matches in the other location. Consult the l ist of actions below: [C:\GitHub\aspnet\AspNetCore-Tooling\src\Razor\src\rzls\rzls.csproj]
 error NU5128: - Add a dependency group for .NETCoreApp5.0 to the nuspec [C:\GitHub\aspnet\AspNetCore-Tooling\src\Razor\src\rzls\rzls.csproj]
 error NU5128: - Add lib or ref assemblies for the net50 target framework [C:\GitHub\aspnet\AspNetCore-Tooling\src\Razor\src\rzls\rzls.csproj]

@ajaybhargavb
Copy link
Contributor Author

error : Version 5.0.100-preview.3.20167.11 of the .NET Core SDK requires at least version 16.5.0 of MSBuild. The current available version of MSBuild is 16.4.0.56107. Change the .NET Core SDK specified in global.json to an older version that requires the MSBuild version currently available.

@JunTaoLuo @dougbu is there anything else I need to update?

@Pilchie
Copy link
Member

Pilchie commented Mar 17, 2020

This is the same thing @ViktorHofer is seeing in the template PRs. Will need a new Helix queue with a newer VS.

@ajaybhargavb
Copy link
Contributor Author

This is the same thing @ViktorHofer is seeing in the template PRs. Will need a new Helix queue with a newer VS.

@Pilchie can you point me to the other PR that uses the new Helix queue?

@Pilchie
Copy link
Member

Pilchie commented Mar 17, 2020

dotnet/aspnetcore#19860 but it doesn't actually do it yet, because we just got the machine images.

@NTaylorMullen
Copy link

@ajaybhargavb any reason this shouldn't go in?

@ajaybhargavb
Copy link
Contributor Author

@ajaybhargavb any reason this shouldn't go in?

Because it fails. And we need a new helix queue to support this. @dotnet/aspnet-build folks, could you share more context on this?

@ViktorHofer
Copy link
Member

Right, we are waiting for build images with 16.5 stable on them. This should probably wait another week.

@NTaylorMullen
Copy link

@ViktorHofer are we good now?

@ajaybhargavb
Copy link
Contributor Author

@dougbu is this now unblocked?

@dougbu
Copy link
Contributor

dougbu commented May 1, 2020

is this now unblocked?

I don't know. Let's see how an SDK from this morning works.

@dougbu
Copy link
Contributor

dougbu commented May 1, 2020

@rrelyea the test failures seen in this validation build make me very nervous about using recent SDKs anywhere. Generated .nuspec files now contain different <contentFiles> entries

<files include="any/net5.0/Views/Shared/_Layout.cshtml" buildAction="Content" />
<files include="any/net5.0/Views/_ViewImports.cshtml" buildAction="Content" />

and <files> entries such as

<file src="C:\Users\vsagent\AppData\Local\Temp\Razor\adpnpqul.oxa\ClassLibrary\bin\Debug\netcoreapp5.0\ClassLibrary.Views.dll" target="lib\net5.0\ClassLibrary.Views.dll" />

instead of the expected .../netcoreapp5.0/... paths. What impact will these changes have on projects consuming these packages?

Note nothing in this repo targets the net5.0 TFM.

@dougbu
Copy link
Contributor

dougbu commented May 1, 2020

BTW, changing the default TFM in this repo to net5.0 shouldn't happen until after we get a dependency update from dotnet/runtime with @ViktorHofer's blocked dotnet/runtime#35176 change.

@dougbu
Copy link
Contributor

dougbu commented May 1, 2020

/ping @rrelyea

@ViktorHofer
Copy link
Member

This is now unblocked 🎉🎉🎉. Please update to the latest runtime build which includes the net5.0 tfm change.

@NTaylorMullen
Copy link

This is now unblocked 🎉🎉🎉. Please update to the latest runtime build which includes the net5.0 tfm change.

Wooo! Can't wait!

@ajaybhargavb
Copy link
Contributor Author

Thanks. Will update

ajaybhargavb and others added 2 commits May 8, 2020 16:36
- this one contains a few fixes
  - has one known issue but that'll only affect this repo in a corner case
@ajaybhargavb ajaybhargavb force-pushed the ajbaaska/update-sdk-version branch from 4e46349 to 9501756 Compare May 8, 2020 23:38
@dougbu
Copy link
Contributor

dougbu commented May 10, 2020

This PR will never pass w/o major changes to workaround perceived TFM mixes due to incomplete changes in the SDK. Suggest closing it in favour of #1873

@ajaybhargavb
Copy link
Contributor Author

Closing in favor of #1873. Thanks @dougbu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants