You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I fetch the upstream branch, do a checkout and then proceed to the subsection "Run the tests locally" where I get a bunch of errors (see below). I have no idea on how to proceed to fix this, and am blocked for the remainder of the course :/
`$ dotnet build --configuration Release
MSBuild version 17.3.2+561848881 for .NET
Determining projects to restore...
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'nunit (>= 3.13.2)' for 'net6.0'.
[C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'NUnit3TestAdapter (>= 3.17.0)' f
or 'net6.0'. [C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'Microsoft.NET.Test.Sdk (>= 16.10
.0)' for 'net6.0'. [C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
Failed to restore C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj (in 120 ms).
1 of 2 projects are up-to-date for restore.
Build FAILED.
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'nunit (>= 3.13.2)' for 'net6.0'.
[C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'NUnit3TestAdapter (>= 3.17.0)' f
or 'net6.0'. [C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'Microsoft.NET.Test.Sdk (>= 16.10
.0)' for 'net6.0'. [C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
0 Warning(s)
3 Error(s)
Time Elapsed 00:00:00.61`
The text was updated successfully, but these errors were encountered:
I'm not sure if this was the right fix, but I found a Reddit post concerning a similar issue and they recommended checking the nuget source. It turns out I didn't have one, and after entering the commands below, my dotnet build worked first try.
I hope mslearn picks this up to correct the course module prerequisites, or at the very least it helps someone at some point.
Thank you very much! I had the exact same error and your solution fixed it for me.
I too hope MS will review their MS-Learn repos more regularly as i stumbled on a few errors, which i was able to fix, thx to this awesome community.
I'm working through the Azure DevOps modules and I've come to a roadblock on https://learn.microsoft.com/en-us/training/modules/run-quality-tests-build-pipeline/4-add-unit-tests
I fetch the upstream branch, do a checkout and then proceed to the subsection "Run the tests locally" where I get a bunch of errors (see below). I have no idea on how to proceed to fix this, and am blocked for the remainder of the course :/
`$ dotnet build --configuration Release
MSBuild version 17.3.2+561848881 for .NET
Determining projects to restore...
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'nunit (>= 3.13.2)' for 'net6.0'.
[C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'NUnit3TestAdapter (>= 3.17.0)' f
or 'net6.0'. [C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'Microsoft.NET.Test.Sdk (>= 16.10
.0)' for 'net6.0'. [C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
Failed to restore C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj (in 120 ms).
1 of 2 projects are up-to-date for restore.
Build FAILED.
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'nunit (>= 3.13.2)' for 'net6.0'.
[C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'NUnit3TestAdapter (>= 3.17.0)' f
or 'net6.0'. [C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'Microsoft.NET.Test.Sdk (>= 16.10
.0)' for 'net6.0'. [C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
0 Warning(s)
3 Error(s)
Time Elapsed 00:00:00.61`
The text was updated successfully, but these errors were encountered: