Open
Description
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.