sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Offline dotnet new console

Open hmrguez opened this issue 2 years ago • 4 comments

From .NET 8.0 forward the new console template now requires dotnet restore because there are new nuggets in the template. This makes it inconvenient for computing at the edge for testing some features and overall starting with the language in low internet access areas.

Can you regress back to what it used to be or offer some kind of feature for those required nuggets to be included in the .net sdk and the console project wouldn't need the dotnet restore command upon creation?

hmrguez avatar Oct 11 '24 21:10 hmrguez

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.

ghost avatar Oct 11 '24 21:10 ghost

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.

ghost avatar Oct 11 '24 21:10 ghost

@hmrguez can you give an example? the template itself has no PackageReferences in it at all: https://github.com/dotnet/sdk/blob/release/8.0.1xx/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ClassLibrary-CSharp/Company.ClassLibrary1.csproj

baronfel avatar Oct 11 '24 21:10 baronfel

@baronfel Don't worry about it, my mistake. This issue was already solved in newer versions of .NET 8. Sorry to bother you, thank you for your time

hmrguez avatar Oct 11 '24 23:10 hmrguez