Hi Mohamed,

 

Have you tried this: https://stackoverflow.com/questions/51198353/unmanagedexports-error-rgiesecke-dllexport-msbuild-dllexportappdomainisolatedta

 

It seems like the tool depends on .NET 3.5, and that is the issue you are seeing.

 

Regards,
Victor

 

From: Mohamed Koubaa
Sent: Monday, March 9, 2020 12:59 PM
To: pythonnet@python.org
Subject: [Python.NET] Building with vs2019

 

Hello,

 

At my organization we use a release of VS2017 that does not include the 7.3 version of the C# compiler and cannot update because we are fixed to a specific C++ ABI.  I am trying to use VS2019 to build and deploy pythonnet using some tips I found here but hit this issue when building clrmodule.15:

 

Error MSB4062 The "RGiesecke.DllExport.MSBuild.DllExportAppDomainIsolatedTask" task could not be loaded from the assembly C:\Users\mkoubaa\.nuget\packages\unmanagedexports\1.2.7\tools\RGiesecke.DllExport.MSBuild.dll. Could not load file or assembly 'Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 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. clrmodule.15 C:\Users\mkoubaa\.nuget\packages\unmanagedexports\1.2.7\tools\RGiesecke.DllExport.targets 58

 

Has anyone got this to work and if so what did you do?  A better question might be how UnmanagedExports is making use of Microsoft.Build.Utilities.  I know that there is a modernization project that may address this in the future.

 

Thanks!

Mohamed Koubaa

Software Developer

ANSYS, Inc

 

_______________________________________________
PythonNet mailing list -- pythonnet@python.org
To unsubscribe send an email to pythonnet-le...@python.org
https://mail.python.org/mailman3/lists/pythonnet.python.org/

Reply via email to