.NET 5.0 will become a default .NET version on macOS and Ubuntu (Windows already contains .NET 5.0 as a default, it came along with Visual Studio 16.8)
Deployment of these changes will start on ~December 7~ December, 14 and will take 3-4 days. (date is moved due to deployments freeze on a week of December, 7)
We would like to provide the latest .NET by default on images.
All pipelines that are not using actions/setup-net-core-sdk action for GitHub Actions or Use .NET Core task for Azure Pipelines might be affected due to a lot of possible breaking changes in new .NET version
Please consider using of actions/setup-net-core-sdk action for GitHub Actions or Use .NET Core task for Azure Pipelines to specify the needed .NET version.
The list of all available .NET versions can be found in corresponding documentation:
Is there a test branch to do some internal testing
@ManuelGalindo unfortunately, this is not available in public yet and will become available after the official release.
Is there a test branch to do some internal testing
@ManuelGalindo we've delayed this by a week but you should be able to use setup-dotnet in GitHub Actions or UseDotNet in Azure Pipelines to test .NET 5 once it's launched during .NET Conf.
Will this also include the required update of VS to 16.8?
Will this also include the required update of VS to 16.8?
@Tratcher That part might actually drop with the Windows 2019 image as soon as it's released, provided it passes all our validation.
Unless I'm missing something, installing .NET5 via "Use .NET Core task" in an Azure pipeline is insufficient as long as Visual Studio is stuck below 16.8. Now that "the week of Nov 16" has been scratched, can you at least confirm that VS 16.8 will be part of the image?
@jackbond , you can track progress of VS 16.8 in https://github.com/actions/virtual-environments/issues/2022
Forgive my ignorance, if the hold up is Visual Studio being updated side-by-side .NET 5 would it at least be possible to update the *nix-based build agents? I appreciate I can use the tool installer, but having it natively on the agent with NuGet pre-populated makes builds more quick.
Thank you in advance.
Hi @taspeotis, since .NET 5 has a few breaking changes, we want to give some time for people to react to them before we make it the default in the images. We are targeting on preinstalling .NET 5 on all images a week after we make VS 16.8 available which we are targeting next week, so the .NET 5 change is currently targeted to the week after next. We want to make the change as soon as possible so those builds speed up, but not so soon that we cause a lot of failures for existing builds.
@maxim-lobanov, was this change silently pushed? It looks like in our ado instance the image is already updated and we have a lot of builds previously defaulting to 3.x currently failing. A heads up to the MS org would have been appreciated.
In addition the internal tasks depending on older .net core/runtime versions are going to start failing on the ado hosted pools.
@Naninani Nope, the new image contains only Visual Studio 16.8 with Net 5 support. Separate installation of Net Core don't include Net 5 yet. Please check that you don't use UseDotNet tasks in pipeline and they don't start consuming Net 5 suddenly
Hi everyone, I'm dropping this question here as I thought this might be related.
My .Net framework 4.7.2 builds have been failing on Azure DevOps build agent (windows-2019) starting last evening/this morning. From this thread it seems that it should not have been upgraded, but I could not see any reason why the build is failing with the following message:
I have tried the following flags:
/p:TargetFrameworkVersion=v4.7.2 /p:tv=16
Has there been a update in windows-2019 relating to .Net 5.0 SDK?
@maxim-lobanov, was this change silently pushed? It looks like in our ado instance the image is already updated and we have a lot of builds previously defaulting to 3.x currently failing. A heads up to the MS org would have been appreciated.
In addition the internal tasks depending on older .net core/runtime versions are going to start failing on the ado hosted pools.
Same here 馃槙
We now added a task which installs the correct .NET Core version.
Hi everyone, I'm dropping this question here as I thought this might be related.
My .Net framework 4.7.2 builds have been failing on Azure DevOps build agent (windows-2019) starting last evening/this morning. From this thread it seems that it should not have been upgraded, but I could not see any reason why the build is failing with the following message:
[error]C:\Program Files\dotnet\sdk\5.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5): Error NETSDK1005: Assets file 'D:\a1\s...\project.assets.json' doesn't have a target for 'net472'. Ensure that restore has run and that you have included 'net472' in the TargetFrameworks for your project.
I have tried the following flags:
/p:TargetFrameworkVersion=v4.7.2 /p:tv=16Has there been a update in windows-2019 relating to .Net 5.0 SDK?
You can either explicitly downgrade the dotnet sdk with the UseDotNet task or update NuGet to at least 5.8 which should fix your issue.
Edit: When targetting full Framework (e.g. net472), you must choose the NuGet update path!
Hi everyone, I'm dropping this question here as I thought this might be related.
My .Net framework 4.7.2 builds have been failing on Azure DevOps build agent (windows-2019) starting last evening/this morning. From this thread it seems that it should not have been upgraded, but I could not see any reason why the build is failing with the following message:[error]C:\Program Files\dotnet\sdk\5.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5): Error NETSDK1005: Assets file 'D:\a1\s...\project.assets.json' doesn't have a target for 'net472'. Ensure that restore has run and that you have included 'net472' in the TargetFrameworks for your project.
I have tried the following flags:
/p:TargetFrameworkVersion=v4.7.2 /p:tv=16
Has there been a update in windows-2019 relating to .Net 5.0 SDK?You can either explicitly downgrade the dotnet sdk with the UseDotNet task or update NuGet to at least 5.8 which should fix your issue.
Thank you @smkanadl for the help. For anyone else facing this issue, upgrading Nuget to at least 5.8 solved this problem for a project on .Net Framework 4.7.2 (running on hosted agent windows-2019). I could not use UseDotNet as that is only for .Net Core and not for .Net Framework.
"date will be defined later"
Could a date be confirmed please? I'd like to stop actively checking this and just add a date to my diary for when I can remove the UseDotNet step. Many thanks.
Hi @DrGriff ,
it is already available on Windows images since VS 16.8 brought it with itself.
On Ubuntu and macOS images it will be added approximately in 2 weeks. But we are recommending keep using UseDotNet step even after it, just to be sure that your build won't be broken if the default .NET will change.
But we are recommending keep using UseDotNet step even after it, just to be sure that your build won't be broken if the default .NET will change.
if that is the recommendation, then there is no point having dotnet on the default image. also doesnt UseDotNet significantly slow down a build, and also waste a non trivial amount of resources?
@SimonCropp UseDotNet adds 3 seconds on our Azure Hosted builds (because what we're after is already installed, but it will install it if it isn't)
@MatthewSteeples what will the impact be when the default dotnet on the VMs is 5.1?
Give Monday 14 Dec (aka Dec 14) 2020
When using vmImage: 'ubuntu-20.04'
and Agent name: 'Azure Pipelines 4'
and Agent machine name: 'fv-az879-972'
and Current agent version: '2.179.0'
then this fails with (SDK Version: 3.1.404)
##[error]/usr/share/dotnet/sdk/3.1.404/Microsoft.Common.CurrentVersion.targets(1177,5): Error MSB3644: The reference assemblies for .NETFramework,Version=v5.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
We could add the installer, but whats the point? It takes time and if a latest .net fails, we want to know.
Also, there is a side affect of using the installer that it changes the .net probing path so if you have 5.0 and 3.1 you need to install both
Please update the agents with the latest .net 5.0
Thanks
cc @AlenaSviridenko
Update:
"Deployment of these changes will start on December, 14 and will take 3-4 days." So i need to wait until the 18th :(
@mikeblakeuk , based on our current deployment progress, Ubuntu images with .NET 5.0 will likely be fully deployed late 16th if there will be no unexpected issues.
Unfortunately, we cannot update all agents at once due to possible capacity issues and infrastructure, so we have to do it iteratively.
I've been experiencing intermittent issues restoring nuget packages on windows-latest over the past week. Is this related?
https://github.com/tgstation/tgstation-server/pull/1164/checks?check_run_id=15737103821
Build FAILED.
D:\a\tgstation-server\tgstation-server\src\Tgstation.Server.Host\Tgstation.Server.Host.csproj : error NU1101: Unable to find package BetterWin32Errors. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\tgstation-server\tgstation-server\tgstation-server.sln]
D:\a\tgstation-server\tgstation-server\src\Tgstation.Server.Host\Tgstation.Server.Host.csproj : error NU1101: Unable to find package Byond.TopicSender. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\tgstation-server\tgstation-server\tgstation-server.sln]
D:\a\tgstation-server\tgstation-server\src\Tgstation.Server.Host\Tgstation.Server.Host.csproj : error NU1101: Unable to find package Cyberboss.AspNetCore.AsyncInitializer. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\tgstation-server\tgstation-server\tgstation-server.sln]
D:\a\tgstation-server\tgstation-server\src\Tgstation.Server.Host\Tgstation.Server.Host.csproj : error NU1101: Unable to find package Cyberboss.SmartIrc4net.Standard. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\tgstation-server\tgstation-server\tgstation-server.sln]
D:\a\tgstation-server\tgstation-server\src\Tgstation.Server.Host\Tgstation.Server.Host.csproj : error NU1101: Unable to find package Discord.Net.WebSocket. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\tgstation-server\tgstation-server\tgstation-server.sln]
D:\a\tgstation-server\tgstation-server\src\Tgstation.Server.Host\Tgstation.Server.Host.csproj : error NU1101: Unable to find package GitLabApiClient. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\tgstation-server\tgstation-server\tgstation-server.sln]
...
And many others
I've been experiencing intermittent issues restoring nuget packages on
windows-latestover the past week. Is this related?https://github.com/tgstation/tgstation-server/pull/1164/checks?check_run_id=15737103821
Build FAILED. D:\a\tgstation-server\tgstation-server\src\Tgstation.Server.Host\Tgstation.Server.Host.csproj : error NU1101: Unable to find package BetterWin32Errors. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\tgstation-server\tgstation-server\tgstation-server.sln] D:\a\tgstation-server\tgstation-server\src\Tgstation.Server.Host\Tgstation.Server.Host.csproj : error NU1101: Unable to find package Byond.TopicSender. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\tgstation-server\tgstation-server\tgstation-server.sln] D:\a\tgstation-server\tgstation-server\src\Tgstation.Server.Host\Tgstation.Server.Host.csproj : error NU1101: Unable to find package Cyberboss.AspNetCore.AsyncInitializer. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\tgstation-server\tgstation-server\tgstation-server.sln] D:\a\tgstation-server\tgstation-server\src\Tgstation.Server.Host\Tgstation.Server.Host.csproj : error NU1101: Unable to find package Cyberboss.SmartIrc4net.Standard. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\tgstation-server\tgstation-server\tgstation-server.sln] D:\a\tgstation-server\tgstation-server\src\Tgstation.Server.Host\Tgstation.Server.Host.csproj : error NU1101: Unable to find package Discord.Net.WebSocket. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\tgstation-server\tgstation-server\tgstation-server.sln] D:\a\tgstation-server\tgstation-server\src\Tgstation.Server.Host\Tgstation.Server.Host.csproj : error NU1101: Unable to find package GitLabApiClient. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\tgstation-server\tgstation-server\tgstation-server.sln] ...And many others
Same for me, FWIW:
```
\a\sanchez\sanchez\Sanchez.Workflow\Sanchez.Workflow.csproj : error NU1101: Unable to find package Serilog. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\sanchez\sanchez\Sanchez.sln]
D:\a\sanchez\sanchez\Sanchez.Workflow\Sanchez.Workflow.csproj : error NU1101: Unable to find package ShellProgressBar. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\sanchez\sanchez\Sanchez.sln]
D:\a\sanchez\sanchez\Sanchez.Workflow\Sanchez.Workflow.csproj : error NU1101: Unable to find package WorkflowCore. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\sanchez\sanchez\Sanchez.sln]
D:\a\sanchez\sanchez\Sanchez.Workflow\Sanchez.Workflow.csproj : error NU1101: Unable to find package SonarAnalyzer.CSharp. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\sanchez\sanchez\Sanchez.sln]
D:\a\sanchez\sanchez\Sanchez.Workflow\Sanchez.Workflow.csproj : error NU1101: Unable to find package Ardalis.GuardClauses. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\sanchez\sanchez\Sanchez.sln]
D:\a\sanchez\sanchez\Sanchez.Workflow\Sanchez.Workflow.csproj : error NU1101: Unable to find package FluentValidation. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\sanchez\sanchez\Sanchez.sln]
D:\a\sanchez\sanchez\Sanchez.Workflow\Sanchez.Workflow.csproj : error NU1101: Unable to find package Microsoft.Extensions.DependencyInjection.Abstractions. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages...
Related issue with work around https://github.com/actions/setup-dotnet/issues/155
Images are deployed everywhere, if you see any issues - please, file a new ticket.
Closing this one.
Most helpful comment
I've been experiencing intermittent issues restoring nuget packages on
windows-latestover the past week. Is this related?https://github.com/tgstation/tgstation-server/pull/1164/checks?check_run_id=15737103821
And many others