Skip to content
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

github action with .NET SDK 5.0.202 fails to compile my solution #16774

Closed
lsoft opened this issue Apr 7, 2021 · 8 comments
Closed

github action with .NET SDK 5.0.202 fails to compile my solution #16774

lsoft opened this issue Apr 7, 2021 · 8 comments
Labels
untriaged Request triage from a team member

Comments

@lsoft
Copy link

lsoft commented Apr 7, 2021

I have a repo https://github.com/lsoft/DpdtInject, and today I experienced a trouble to compile my sln in github actions.

The only difference between red and green actions is SDK version: works fine with 5.0..201, fails with 5.0.202. So I guess the root of the problem is in SDK 5.0.202, but I may miss something.

Please compare the following github action logs. I post here only the failed step.

Please let me know if any additional information is required.

Failed action with 5.0.202 ( https://github.com/lsoft/DpdtInject/actions/runs/726094647 ):

Run dotnet restore
  dotnet restore
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  env:
    DOTNET_ROOT: C:\Users\runneradmin\AppData\Local\Microsoft\dotnet

Welcome to .NET 5.0!
---------------------
SDK Version: 5.0.202

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
  Determining projects to restore...
D:\a\DpdtInject\DpdtInject\DpdtInject.Tests.Performance\DpdtInject.Tests.Performance.csproj : error NU1101: Unable to find package BenchmarkDotNet. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Tests.Performance\DpdtInject.Tests.Performance.csproj : error NU1101: Unable to find package DryIoc. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Tests.Performance\DpdtInject.Tests.Performance.csproj : error NU1101: Unable to find package MicroResolver. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Tests\DpdtInject.Tests.csproj : error NU1101: Unable to find package Microsoft.CodeAnalysis.Common. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Tests\DpdtInject.Tests.csproj : error NU1101: Unable to find package Microsoft.CodeAnalysis.CSharp. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Tests\DpdtInject.Tests.csproj : error NU1102: Unable to find package Microsoft.NET.Test.Sdk with version (>= 16.9.1) [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Tests\DpdtInject.Tests.csproj : error NU1102:   - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 16.8.0 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Tests\DpdtInject.Tests.csproj : error NU1102: Unable to find package MSTest.TestAdapter with version (>= 2.2.1) [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Tests\DpdtInject.Tests.csproj : error NU1102:   - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 2.1.2 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Tests\DpdtInject.Tests.csproj : error NU1102: Unable to find package MSTest.TestFramework with version (>= 2.2.1) [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Tests\DpdtInject.Tests.csproj : error NU1102:   - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 2.1.2 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Tests\DpdtInject.Tests.csproj : error NU1102: Unable to find package coverlet.collector with version (>= 3.0.3) [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Tests\DpdtInject.Tests.csproj : error NU1102:   - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.3.0 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Tests\DpdtInject.Tests.csproj : error NU1101: Unable to find package System.Reflection.MetadataLoadContext. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
  Failed to restore D:\a\DpdtInject\DpdtInject\DpdtInject.Tests.Performance\DpdtInject.Tests.Performance.csproj (in 185 ms).
  Failed to restore D:\a\DpdtInject\DpdtInject\DpdtInject.Tests\DpdtInject.Tests.csproj (in 228 ms).
D:\a\DpdtInject\DpdtInject\DpdtInject.TestCaseProducer\DpdtInject.TestCaseProducer.csproj : error NU1101: Unable to find package Microsoft.CodeAnalysis.Analyzers. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.TestCaseProducer\DpdtInject.TestCaseProducer.csproj : error NU1101: Unable to find package Microsoft.CodeAnalysis.CSharp.Workspaces. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
  Failed to restore D:\a\DpdtInject\DpdtInject\DpdtInject.TestCaseProducer\DpdtInject.TestCaseProducer.csproj (in 3 ms).
D:\a\DpdtInject\DpdtInject\DpdtInject.Profiler\DpdtInject.Profiler.csproj : error NU1101: Unable to find package BenchmarkDotNet. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Profiler\DpdtInject.Profiler.csproj : error NU1101: Unable to find package BenchmarkDotNet.Diagnostics.Windows. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Profiler\DpdtInject.Profiler.csproj : error NU1101: Unable to find package Microsoft.CodeAnalysis.Common. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Profiler\DpdtInject.Profiler.csproj : error NU1101: Unable to find package Microsoft.CodeAnalysis.Workspaces.Common. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Profiler\DpdtInject.Profiler.csproj : error NU1101: Unable to find package Microsoft.CodeAnalysis.CSharp. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Profiler\DpdtInject.Profiler.csproj : error NU1102: Unable to find package Microsoft.NET.Test.Sdk with version (>= 16.9.1) [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Profiler\DpdtInject.Profiler.csproj : error NU1102:   - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 16.8.0 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Profiler\DpdtInject.Profiler.csproj : error NU1102: Unable to find package MSTest.TestAdapter with version (>= 2.2.1) [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Profiler\DpdtInject.Profiler.csproj : error NU1102:   - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 2.1.2 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Profiler\DpdtInject.Profiler.csproj : error NU1102: Unable to find package MSTest.TestFramework with version (>= 2.2.1) [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Profiler\DpdtInject.Profiler.csproj : error NU1102:   - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 2.1.2 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Profiler\DpdtInject.Profiler.csproj : error NU1101: Unable to find package System.Reflection.MetadataLoadContext. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Injector\DpdtInject.Injector.csproj : error NU1102: Unable to find package NETStandard.Library with version (>= 2.0.3) [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Injector\DpdtInject.Injector.csproj : error NU1102:   - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.6.0 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
  Failed to restore D:\a\DpdtInject\DpdtInject\DpdtInject.Profiler\DpdtInject.Profiler.csproj (in 13 ms).
  Failed to restore D:\a\DpdtInject\DpdtInject\DpdtInject.Injector\DpdtInject.Injector.csproj (in 14 ms).
D:\a\DpdtInject\DpdtInject\DpdtInject.Generator.Core\DpdtInject.Generator.Core.csproj : error NU1101: Unable to find package Microsoft.CodeAnalysis.Analyzers. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Generator.Core\DpdtInject.Generator.Core.csproj : error NU1101: Unable to find package Microsoft.CodeAnalysis.CSharp.Workspaces. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Generator.Core\DpdtInject.Generator.Core.csproj : error NU1102: Unable to find package NETStandard.Library with version (>= 2.0.3) [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Generator.Core\DpdtInject.Generator.Core.csproj : error NU1102:   - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.6.0 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
  Failed to restore D:\a\DpdtInject\DpdtInject\DpdtInject.Generator.Core\DpdtInject.Generator.Core.csproj (in 3 ms).
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1101: Unable to find package Microsoft.CodeAnalysis.Common. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1101: Unable to find package Microsoft.CodeAnalysis.Workspaces.Common. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1101: Unable to find package Microsoft.VisualStudio.Composition. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1101: Unable to find package Microsoft.VisualStudio.SDK.Analyzers. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1101: Unable to find package Microsoft.CodeAnalysis. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1101: Unable to find package Microsoft.VisualStudio.Language. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1101: Unable to find package Microsoft.VisualStudio.LanguageServices. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1101: Unable to find package Microsoft.VisualStudio.SDK. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1101: Unable to find package Microsoft.VisualStudio.Shell.Framework. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1101: Unable to find package Microsoft.VisualStudio.Threading.Analyzers. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1101: Unable to find package Microsoft.Xaml.Behaviors.Wpf. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1102: Unable to find package Newtonsoft.Json with version (>= 12.0.3) [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1102:   - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 9.0.1 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1101: Unable to find package NuGet.VisualStudio. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1101: Unable to find package StreamJsonRpc. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1102: Unable to find package System.Collections.Immutable with version (>= 5.0.0) [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : error NU1102:   - Found 2 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.2.0 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
  Failed to restore D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj (in 97 ms).
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension.TestConsole\DpdtInject.Extension.TestConsole.csproj : error NU1101: Unable to find package Dpdt.Injector. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
  Failed to restore D:\a\DpdtInject\DpdtInject\DpdtInject.Extension.TestConsole\DpdtInject.Extension.TestConsole.csproj (in 1 ms).
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension.CodeLens\DpdtInject.Extension.CodeLens.csproj : error NU1101: Unable to find package Microsoft.VisualStudio.Language. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension.CodeLens\DpdtInject.Extension.CodeLens.csproj : error NU1101: Unable to find package Microsoft.VisualStudio.SDK.Analyzers. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension.CodeLens\DpdtInject.Extension.CodeLens.csproj : error NU1101: Unable to find package StreamJsonRpc. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
  Failed to restore D:\a\DpdtInject\DpdtInject\DpdtInject.Extension.CodeLens\DpdtInject.Extension.CodeLens.csproj (in 2 ms).
D:\a\DpdtInject\DpdtInject\DpdtInject.Generator\DpdtInject.Generator.csproj : error NU1102: Unable to find package Microsoft.CodeAnalysis.Analyzers with version (>= 3.3.2) [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Generator\DpdtInject.Generator.csproj : error NU1102:   - Found 191 version(s) in https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json [ Nearest version: 3.3.1-beta1.20505.3 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Generator\DpdtInject.Generator.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Generator\DpdtInject.Generator.csproj : error NU1102: Unable to find package Microsoft.CodeAnalysis.CSharp.Workspaces with version (>= 3.8.0) [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Generator\DpdtInject.Generator.csproj : error NU1102:   - Found 214 version(s) in https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json [ Nearest version: 3.7.0-3.20271.4 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Generator\DpdtInject.Generator.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Generator\DpdtInject.Generator.csproj : error NU1103: Unable to find a stable package NETStandard.Library with version (>= 2.0.3) [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Generator\DpdtInject.Generator.csproj : error NU1103:   - Found 87 version(s) in https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json [ Nearest version: 2.2.0-prerelease.19456.3 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Generator\DpdtInject.Generator.csproj : error NU1103:   - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.6.0 ] [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
  Failed to restore D:\a\DpdtInject\DpdtInject\DpdtInject.Generator\DpdtInject.Generator.csproj (in 441 ms).
Error: Process completed with exit code 1.

And the normal action after I switched back to 5.0.201 ( https://github.com/lsoft/DpdtInject/actions/runs/726100065 ):

Run dotnet restore
  dotnet restore
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  env:
    DOTNET_ROOT: C:\Users\runneradmin\AppData\Local\Microsoft\dotnet

Welcome to .NET 5.0!
---------------------
SDK Version: 5.0.201

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
  Determining projects to restore...
  Restored D:\a\DpdtInject\DpdtInject\DpdtInject.Injector\DpdtInject.Injector.csproj (in 8.68 sec).
  Restored D:\a\DpdtInject\DpdtInject\DpdtInject.Tests\DpdtInject.Tests.csproj (in 48.48 sec).
  Restored D:\a\DpdtInject\DpdtInject\DpdtInject.Tests.Performance\DpdtInject.Tests.Performance.csproj (in 39.28 sec).
  Restored D:\a\DpdtInject\DpdtInject\DpdtInject.Profiler\DpdtInject.Profiler.csproj (in 1.41 sec).
  Restored D:\a\DpdtInject\DpdtInject\DpdtInject.TestCaseProducer\DpdtInject.TestCaseProducer.csproj (in 3.33 sec).
  Restored D:\a\DpdtInject\DpdtInject\DpdtInject.Generator\DpdtInject.Generator.csproj (in 3.03 sec).
  Restored D:\a\DpdtInject\DpdtInject\DpdtInject.Generator.Core\DpdtInject.Generator.Core.csproj (in 1.11 sec).
  Restored D:\a\DpdtInject\DpdtInject\DpdtInject.Extension.TestConsole\DpdtInject.Extension.TestConsole.csproj (in 600 ms).
  Restored D:\a\DpdtInject\DpdtInject\DpdtInject.Extension.CodeLens\DpdtInject.Extension.CodeLens.csproj (in 9.83 sec).
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : warning NU1603: Microsoft.CodeAnalysis.EditorFeatures.Text 3.8.0 depends on Microsoft.VisualStudio.CoreUtility (>= 16.8.39) but Microsoft.VisualStudio.CoreUtility 16.8.39 was not found. An approximate best match of Microsoft.VisualStudio.CoreUtility 16.8.239 was resolved. [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : warning NU1603: Microsoft.CodeAnalysis.EditorFeatures.Text 3.8.0 depends on Microsoft.VisualStudio.Text.Data (>= 16.8.39) but Microsoft.VisualStudio.Text.Data 16.8.39 was not found. An approximate best match of Microsoft.VisualStudio.Text.Data 16.8.239 was resolved. [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj : warning NU1603: Microsoft.CodeAnalysis.EditorFeatures.Text 3.8.0 depends on Microsoft.VisualStudio.Text.Logic (>= 16.8.39) but Microsoft.VisualStudio.Text.Logic 16.8.39 was not found. An approximate best match of Microsoft.VisualStudio.Text.Logic 16.8.239 was resolved. [D:\a\DpdtInject\DpdtInject\DpdtInject.sln]
  Restored D:\a\DpdtInject\DpdtInject\DpdtInject.Extension\DpdtInject.Extension.csproj (in 12.01 sec).
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Apr 7, 2021
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@AraHaan
Copy link
Member

AraHaan commented Apr 7, 2021

It's a known issue with setup-dotnet on github actions, I get that on the .NET 6 SDK sometimes with how sometimes it somehow screws up on setting up the global nuget feeds on the CI containers, and then other times if you was to manually do the dotnet nuget source add to add them manually it could break CI builds because it is for some reason inconsistent currently with that action. I would see if filing an issue for that action could infact fix this known issue.

Also looking at that code, you do not need to add msbuild to path and can successfully build with dotnet build, also I think your invoke of msbuild and adding it to path is actually using the .NET SDK's copy as I think the .NET SDK adds it's own msbuild to path if I remember right Nope was wrong checked my mac that I use the .NET 6 SDK to build projects with.

Anyways a proper .NET Core build setup is at https://github.com/Elskom/Sdk/ if you are interested in viewing how I setup my workflows, and yes I use a manual nuget.config file which is used instead of the default nuget.config and includes the default feeds (as well as the azure feeds to the .NET 5 and 6 nuget packages that are also part of the .NET 5 / 6 frameworks while my code targets .NET Standard.

cc: @lsoft

@lsoft
Copy link
Author

lsoft commented Apr 7, 2021

@AraHaan I'm using msbuild because my sln contains a VSIX project with old style-csproj and libs csproj with SDK style.

I will take a look to elskom/sdk, thank you, but it looks suspicious to me, that I get the troubles at the moment 5.0.202 released; I have a zero troubles for a half of year before this day :)

@AraHaan
Copy link
Member

AraHaan commented Apr 7, 2021

I had troubles with the .NET 5 SDK too with nuget restore inside of Visual Studio and building, which was why I moved it to the .NET 6 SDK, Also I would try to upgrade all the old style csproj's with the vs2019 migration tool that can be installed with dotnet tool install --global it should be findable on github too.

Edit: With this pr made back in 2020 it should show you how to get VSIX's while using the .NET SDK only.

gitextensions/gitextensions#7396

@marcpopMSFT
Copy link
Member

@aortiz-msft @JonDouglas similar to the other issue I pinged you on. This appears to be a missing default feed.

@JonDouglas
Copy link

JonDouglas commented Apr 7, 2021

We found a root cause in actions and are working to get a resolution shortly.

EDIT:

This issue occurs because NuGet added the following change NuGet/NuGet.Client#3907 to respect empty nuget.config files. The problem is that the windows build agents for some reason are pre-configured with an empty nuget.config prior to restore which would generate a nuget.config with the central nuget.org source.

@lsoft
Copy link
Author

lsoft commented Apr 8, 2021

thanks for help guys! due to my problem is unrelated with sdk itself, I close this.

@lsoft lsoft closed this as completed Apr 8, 2021
@AraHaan
Copy link
Member

AraHaan commented Apr 8, 2021

We found a root cause in actions and are working to get a resolution shortly.

EDIT:

This issue occurs because NuGet added the following change NuGet/NuGet.Client#3907 to respect empty nuget.config files. The problem is that the windows build agents for some reason are pre-configured with an empty nuget.config prior to restore which would generate a nuget.config with the central nuget.org source.

That explains why my windows CI's would fail for even the .NET 6 preview SDK's randomly, but work on mac / linux CI's on github actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

4 participants