DllExport icon indicating copy to clipboard operation
DllExport copied to clipboard

Support for `dotnet` MSBuild needed

Open BierDav opened this issue 9 months ago • 1 comments

Steps to reproduce:

. . .

  • Create a new .net9.0 project
  • Copy DllExport.bat into solution folder and execute it
  • Check Installed and click apply
  • Run dotnet build . . .

Now you get following error:

0>net.r_eg.DllExport.targets(197,5): Error MSB4062 : The "net.r_eg.DllExport.Activator.DllExportActivatorTask" task could not be loaded from the assembly C:\Users\[user]\RiderProjects\HelloDllExportCore\packages\DllExport.1.8.0\tools\net.r_eg.DllExport.Activator.dll. Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

If you use Visual Studio MSBuild you won't get this error.

BierDav avatar Mar 21 '25 14:03 BierDav

Hello,

https://github.com/3F/DllExport/issues/229#issuecomment-2149715812

I may consider adding dotnet build support later. Thanks for the suggestion!

3F avatar Mar 22 '25 17:03 3F