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

Value cannot be null (Parameter 'key') #26

Open
kfrancis opened this issue Aug 24, 2022 · 4 comments
Open

Value cannot be null (Parameter 'key') #26

kfrancis opened this issue Aug 24, 2022 · 4 comments

Comments

@kfrancis
Copy link

Trying to snitch on a .NET 4.8 solution, which it looks like it's possible, but I'm getting the following:

C:\Projects\SuperAwesomeProject>snitch SuperAwesomeProject.sln --tfm net48

Analyzing SuperAwesomeProject.sln
Analyzing SuperAwesomeProject (net48)...
Error: Value cannot be null. (Parameter 'key')

Snitch doesn't seem to have a verbose mode to give me some more information, so there's not much I can do here.

@kfrancis
Copy link
Author

Based on the code, it looks like it's because there are non-"package references" projects in use.

@anthony-steele-cko
Copy link

anthony-steele-cko commented Sep 1, 2022

I am getting the same. What is meant by "non-"package references" projects". Is it a line like this?

<ProjectReference Include="..\Other.Folder\Other.csproj" />

or is it the

  <Reference Include="System.Web" />

What is the recommended fix? Neither can be simply deleted.
It would be nicer if the error message reported which file and line that it failed on.

@kfrancis
Copy link
Author

I am getting the same. What is meant by "non-"package references" projects".

I mean projects that use a packages.config file instead of having the references within the project file itself.

@anthony-steele-cko
Copy link

Ah. I have no packages.config file references in the .csproj that I am attempting to run snitch on, or any project upstream of it. They do exist elsewhere in the solution, but this should not be relevant as it's not part of the dependency tree being analysed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants