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

DevToys extension : Struggling with nuget package #1282

Closed
veler opened this issue Jul 2, 2024 Discussed in #1280 · 0 comments · Fixed by #1283
Closed

DevToys extension : Struggling with nuget package #1282

veler opened this issue Jul 2, 2024 Discussed in #1280 · 0 comments · Fixed by #1283
Labels
bug Something isn't working

Comments

@veler
Copy link
Collaborator

veler commented Jul 2, 2024

Discussed in #1280

Originally posted by Poilaupat July 1, 2024
Hi,

I have an idea for a DevToys extension, so I started following the "Getting Started" section. I set up my environment (Windows 11 + Visual Studio 2022 17.10.1 with .NET Desktop workload + environment path configured). However, when I try to create the minimal extension, I get stuck at the step where the resource assembly identifier is created. The using DevToys.Api directive triggers an error: The type or namespace 'DevToys' cannot be found (Are you missing a using directive or an assembly reference?).

Here's what I've checked so far:

  • The NuGet package is correctly referenced (although I installed it via the VS NuGet Package Manager Interface rather than the command line, but I don't think that matters).
  • The target version of my project is .NET 8.
  • I tried various solutions proposed on Stack Overflow for similar problems (clean-rebuild, .vs folder delete, uninstall-reinstall of the NuGet package), but nothing worked.

What I've noticed is that the NuGet package doesn't seem to contain a DLL file (I'm not an expert on NuGet packages, so I don't know if this is normal, but I expected to see DevToys.Api.dll). When I compile the project, I can't see DevToys.Api.dll in the output folder. I observe different behavior when I try to add other references (like AutoMapper, for example): the DLLs are deployed in the output folder even if they are not explicitly used in a C# file.

Does this mean that I have to add a DLL reference to DevToys.Api.dll from the installation folder?

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
1 participant