DllExport
DllExport copied to clipboard
Support for `dotnet` MSBuild needed
Steps to reproduce:
. . .
- Create a new
.net9.0project - Copy
DllExport.batinto solution folder and execute it - Check
Installedand 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.
Hello,
https://github.com/3F/DllExport/issues/229#issuecomment-2149715812
I may consider adding dotnet build support later.
Thanks for the suggestion!