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

ArgumentNullException thrown by hand #1731

Closed
yecril71pl opened this issue Dec 13, 2021 · 0 comments · Fixed by #1732
Closed

ArgumentNullException thrown by hand #1731

yecril71pl opened this issue Dec 13, 2021 · 0 comments · Fixed by #1732

Comments

@yecril71pl
Copy link
Contributor

File a bug

Remember:

  • Please check that the documentation does not explain the behavior you are seeing.
  • Please search in both open and closed issues to check that your bug has not already been filed.

Include your code

To fix any bug we must first reproduce it. To make this possible, please attach a small, runnable project or post a small, runnable code listing that reproduces what you are seeing.

It is often impossible for us to reproduce a bug when working with only code snippets since we have to guess at the missing code.

Use triple-tick code fences for any posted code. For example:

env 'codegen_trace= 1' 'dotnet' 'run' 'bin/Debug/net6.0/dotnet-aspnet-codegenerator.dll'

Include stack traces

Include the full exception message and stack trace for any exception you encounter.

Use triple-tick fences for stack traces. For example:

Value cannot be null. (Parameter 'targetsLocation')
[Trace]:    at Microsoft.Extensions.ProjectModel.MsBuildProjectContextBuilder..ctor(String projectPath, String targetsLocation, String configuration) in /tmp/Scaffolding/src/Shared/Microsoft.DotNet.Scaffolding.Shared/MsBuild/MsBuildProjectContextBuilder.cs:line 28
   at Microsoft.VisualStudio.Web.CodeGeneration.Tools.Program.GetProjectInformation(String projectPath, String configuration) in /tmp/Scaffolding/tools/dotnet-aspnet-codegenerator/Program.cs:line 291
   at Microsoft.VisualStudio.Web.CodeGeneration.Tools.Program.BuildAndDispatchDependencyCommand(String[] args, String projectPath, String buildBasePath, String configuration, Boolean noBuild, ILogger logger) in /tmp/Scaffolding/tools/dotnet-aspnet-codegenerator/Program.cs:line 174
   at Microsoft.VisualStudio.Web.CodeGeneration.Tools.Program.<>c__DisplayClass19_0.<Execute>b__0() in /tmp/Scaffolding/tools/dotnet-aspnet-codegenerator/Program.cs:line 130

Include provider and version information

Microsoft.VisualStudio.Web.CodeGeneration.Design/Microsoft.DotNet.MSIdentity version:
1.0.0
Target framework: (e.g. .NET 5.0)
net6.0
Operating system:
Linux x64 5.15.6-1-default
IDE: (e.g. Visual Studio 2019 16.3)
1.62.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant