-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Update the sdk build to target net8.0 #28563
Conversation
@dougbu do you happen to know how to avoid the aspnet analyzer exceptions? This is our first try to move the sdk to targeting 8.0 and using the 8.0 sdk. |
@marcpopMSFT I think @JamesNK and @captainsafia are our HTTP analyzer specialists. See a few commits from @halter73 too. Hope one of them can help you. |
I’ll take a look. |
I've identified the problem. The fix is in aspnetcore so you'll need to wait for the update to flow through. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@JamesNK the SDK main branch is on aspnetcore 8.0.0-alpha.1.22517.3 and I tried rerunning this PR but it still failed with the same error. What else needs to be done to unblock this? |
When I ran build on main I got 8.0.0-alpha.1.22512.9 of the SDK restored. Its commit was from before my changes - dotnet/aspnetcore@361e628 |
You're still using the same SDK without the fix... Do you need to update the SDK in this PR's global.json to get a newer version with the fixed analyzer? |
Co-authored-by: James Newton-King <[email protected]>
Seems this is still looking for C:\h\w\B756097F\p\ex\msbuildExtensions\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.NETFramework.targets(114,5): error MSB4062: The "AddFacadesToReferences" task could not be loaded from the assembly
C:\h\w\B756097F\p\ex\msbuildExtensions\Microsoft\Microsoft.NET.Build.Extensions\\tools\net7.0\Microsoft.NET.Build.Extensions.Tasks.dll.
Could not load file or assembly 'C:\h\w\B756097F\p\ex\msbuildExtensions\Microsoft\Microsoft.NET.Build.Extensions\tools\net7.0\Microsoft.NET.Build.Extensions.Tasks.dll'.
The system cannot find the path specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:\h\w\B756097F\t\dotnetSdkTests\r1lisw1i.eln\Anet462Projec---F15591BC\TestApp\TestApp.csproj] |
@lewing GetPackDefinitionLocations is failing because it sees Microsoft.NETCore.App.Runtime.osx-arm64 and osx.x64 in both the 8 and 7 manifests from what I can tell. CC @dsplaisted |
@dotnet/aspnet-blazor-eng Looks like a lot of the remaining failures (or all) are tests in blazor-wasm. Do these need to be updated to allow targeting 8.0? May you please take a look? cc @marcpopMSFT |
Latest change is getting closer. @dotnet/aspnet-blazor-eng can you take a look at the blazor failures that all appear to be similar to this: @dotnet/templating-engine-maintainers there are a few template engine tests also failing. Can you take a look as well? |
Fix our implicit defines behavior for the windows platform versions
…into marcpopMSFT-updatetfm
|
@@ -28,10 +28,10 @@ Copyright (c) .NET Foundation. All rights reserved. | |||
<PropertyGroup> | |||
<!-- Paths to tools, tasks, and extensions are calculated relative to the BlazorWebAssemblySdkDirectoryRoot. This can be modified to test a local build. --> | |||
<BlazorWebAssemblySdkDirectoryRoot Condition="'$(BlazorWebAssemblySdkDirectoryRoot)'==''">$(MSBuildThisFileDirectory)..\</BlazorWebAssemblySdkDirectoryRoot> | |||
<_BlazorWebAssemblySdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">net7.0</_BlazorWebAssemblySdkTasksTFM> | |||
<_BlazorWebAssemblySdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">net8.0</_BlazorWebAssemblySdkTasksTFM> |
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.
We updating this in many places, is it worth changing to this?
<_BlazorWebAssemblySdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">net8.0</_BlazorWebAssemblySdkTasksTFM> | |
<_BlazorWebAssemblySdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">$(SdkTargetFramework)</_BlazorWebAssemblySdkTasksTFM> |
@dotnet/aspnet-blazor-eng , can anyone take a look here? both WinForms and WPF are blocked from flowing up. |
… test project templates package
templating tests were fixed in 4da0821 |
@dotnet/aspnet-blazor-eng PTAL, there are at least 10+ PRs blocked by this I can think of now |
* Updates the way the baselines are compared to generate a template of the baselines from the current manifest and compare it against the existing template instead of applying the current versions to the baseline and comparing it against the generated manifest. * Removes all the versions and hashes from all the files Wed generate. * Splits the code for generating and comparing the baselines into their own classes for better maintenance. * Updates the baselines to reflect the new format.
@tmat I believe Noah said that you were already looking into dotnet watch failures. Looks like there are four failures now here in those tests. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
framework error merge? |
Merge. 😏 |
No description provided.