-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Default web templates to net5.0 #20748
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
Conversation
Notes#19860 (comment) (@MattGal)
#19860 (comment) (@wtgodbe)
#19860 (comment) (@dougbu)
#19860 (comment) (@markwilkie)
|
The version of Nuget.Client in VS16.5.1 is from November of last year: https://dev.azure.com/devdiv/DevDiv/_git/VS?path=%2F.corext%2FConfigs%2Fcomponents.json&version=GTrelease%2Fvs%2F16.5.1. The change we care about was made in March: NuGet/NuGet.Client@162e235. So 16.5.1 would appear to not be sufficient 😢. @rrelyea will we have to wait for 16.6 to get a version of VS w/ sufficient knowledge of the |
This is a restore time issue isn't it? Couldn't we restore with |
I believe it happens during the regular project build, after restore - it's an issue with |
Either way, I'm trying out using |
.azure/pipelines/ci.yml
Outdated
@@ -134,15 +126,6 @@ stages: | |||
# This is intentional to workaround https://github.com/dotnet/arcade/issues/1957 which always re-submits for code-signing, even | |||
# if they have already been signed. This results in slower builds due to re-submitting the same .nupkg many times for signing. | |||
# The sign settings have been configured to | |||
- ${{ if ne(variables['System.TeamProject'], 'public') }}: |
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.
Why remove this? We'll have to add it back in if/when we do internal builds of net5 (CC @mmitche)
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.
Yes, this should remain or it will have to be added back later.
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.
I didn't remove it; I just moved the same steps up in default-build.yml to make sure it happens before running ./restore.cmd
. The change also removes some duplication in the YAML.
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.
NuGet shouldn't be involved in the regular project build, only the restore phase (keeping in mind that dotnet build restore implicitly, though msbuild doesn't unless the /restore flag is passed). |
Current branch isn't working because (a) |
.azure/pipelines/ci.yml
Outdated
@@ -134,15 +126,6 @@ stages: | |||
# This is intentional to workaround https://github.com/dotnet/arcade/issues/1957 which always re-submits for code-signing, even | |||
# if they have already been signed. This results in slower builds due to re-submitting the same .nupkg many times for signing. | |||
# The sign settings have been configured to | |||
- ${{ if ne(variables['System.TeamProject'], 'public') }}: |
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.
.azure/pipelines/ci.yml
Outdated
@@ -163,6 +147,7 @@ stages: | |||
-all | |||
-buildNative | |||
-noBuildJava | |||
-noRestore |
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.
I'm least sure about using -noRestore
in this build job because it's goes back and forth between X64 and X86 builds multiple times and the bitness can change how some projects are restored. Will kick off an internal build to make sure I didn't break anything. (Could add more ./restore.cmd
invocations if need be.)
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.
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.
I need to focus almost exclusively on #20760 (spent too much time on this one today |
🆗 centralizing the Windows restore operations doesn't work quite right. Will spread the build steps for this out again after #20760. |
When I tried building with a newer VS locally, I saw lots of new warnings e.g.
Are these warnings something we should be concerned about @ViktorHofer❔ When restoring w/
Because we use Tempted to change our |
972d990
to
644f977
Compare
644f977
to
cb32800
Compare
@rrelyea according to the latest validation build w/ the scouting queue,
Are hacks such as using |
That smells like that nuget doesn’t understand that net5.0 is equivalent to netcoreapp5.0 (It still thinks it is .NetFramework : In order for full framework msbuild to work, you need to install the right build of VS with nuget that knows about net5.0 |
@rrelyea so, "VS 16.6 – Preview 2" (according to internal emails, what's on these scouting agents) isn't new enough -- still? |
What build # is that preview 2 build? |
@rrelyea sorry, looks like I tested with the wrong scouting queue. Will check back tomorrow… |
I'm hearing queues will be updated to 16.6 preview tomorrow morning |
Yes, the following queues are slated to be updated to 16.6.0 Preview 2 tomorrow. |
0587cf4
to
60ae51c
Compare
I'm hoping we can unblock dotnet/razor#1873, trigger the subscription into this repo, and change the TFM everywhere. But, we'll probably need to build with |
Closing in favour of #21630 |
Updating the web templates to default to net5.0 instead of netcoreapp5.0.
Contributes towards dotnet/sdk#10756.
/cc @anurse @Pilchie
Continuing #19860 with different branches all 'round. (I couldn't push to @ViktorHofer's fork).