You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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:
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!
The text was updated successfully, but these errors were encountered: