Skip to content

dotnet new --install results in a null ref #3039

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

Closed
pranavkm opened this issue Apr 14, 2021 · 3 comments
Closed

dotnet new --install results in a null ref #3039

pranavkm opened this issue Apr 14, 2021 · 3 comments
Assignees
Labels
triaged The issue was evaluated by the triage team, placed on correct area, next action defined.

Comments

@pranavkm
Copy link
Contributor

Discovered this as part of ASP.NET Core's builds:

D:\temp\buildops\aspnetcore\.dotnet\dotnet.exe new --install "D:\temp\buildops\aspnetcore\artifacts\packages\Debug\Shipping\Microsoft.DotNet.Web.Client.ItemTemplates.6.0.0-dev.nupkg" --debug:custom-hive "D:\temp\buildops\aspnetcore\src\ProjectTemplates\test\bin\Debug\net6.0\TestTemplates\\Hives\f65c109b-ee07-4fbb-b6df-1fd0c6472fac\.templateengine" [D:\temp\buildops\aspnetcore\src\ProjectTemplates\test\bin\Debug\net6.0\]
Getting ready...
The following template packages will be installed:
  D:\temp\buildops\aspnetcore\artifacts\packages\Debug\Shipping\Microsoft.DotNet.Web.Client.ItemTemplates.6.0.0-dev.nupkg

[ERROR] Object reference not set to an instance of an object.
[ERROR]    at Microsoft.TemplateEngine.Cli.TemplatePackageCoordinator.EnterInstallFlowAsync(INewCommandInput commandInput, CancellationToken cancellationToken) in Microsoft.TemplateEngine.Cli.dll:token 0x600018b+0x2f6
[ERROR]    at Microsoft.TemplateEngine.Cli.New3Command.ExecuteAsync() in Microsoft.TemplateEngine.Cli.dll:token 0x6000148+0x381
[ERROR]    at Microsoft.TemplateEngine.Cli.CommandParsing.NewCommandInputCli.<>c__DisplayClass102_0.<<OnExecute>b__0>d.MoveNext() in Microsoft.TemplateEngine.Cli.dll:token 0x60004b5+0x71

SDK v6.0.100-preview.4.21214.10

@pranavkm
Copy link
Contributor Author

This is blocking our ability to update to a new version of the SDK / pick up a new runtime. Possibly related to this: https://github.com/dotnet/sdk/issues/16906

@DavidKarlas
Copy link
Contributor

We did some big refactoring recently, that went out to SDK, I will get on fixing this right away, thank you for reporting

@donJoseLuis donJoseLuis added the triaged The issue was evaluated by the triage team, placed on correct area, next action defined. label Apr 15, 2021
@DavidKarlas
Copy link
Contributor

This is now fixed with #3040 and propagated to SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged The issue was evaluated by the triage team, placed on correct area, next action defined.
Projects
None yet
Development

No branches or pull requests

3 participants