Skip to content

windows 10, python 3.5 unmanaged exports issue - error : Microsoft.Build.Utilities.ToolLocationHelper could not find ildasm.exe #216

Closed

Description

@den-run-ai
C:\Users\denfromufa\Documents\pythonnet>python.exe setup.py bdist_wheel
running bdist_wheel
running build
running build_ext
Installing 'NUnit 2.6.2'.
Installing 'UnmanagedExports 1.2.6'.
Successfully installed 'NUnit 2.6.2'.
Successfully installed 'UnmanagedExports 1.2.6'.
Using mt.exe from Windows Kit 8.1
Microsoft (R) Manifest Tool version 6.3.9600.17336
Copyright (c) Microsoft Corporation 2012.
All rights reserved.
Microsoft (R) Build Engine version 14.0.24730.2
Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) Build Engine version 14.0.24730.2
Copyright (C) Microsoft Corporation. All rights reserved.

assemblymanager.cs(206,37): warning CS0168: The variable 'e' is declared but never used [C:\Users\denfromufa\Documents\
pythonnet\src\runtime\Python.Runtime.csproj]
  Python.Runtime -> C:\Users\denfromufa\Documents\pythonnet\src\runtime\bin\x64\ReleaseWin\Python.Runtime.dll
C:\Program Files (x86)\MSBuild\14.0\bin\amd64\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could no
t find rule set file "MinimumRecommendedRules.ruleset". [C:\Users\denfromufa\Documents\pythonnet\src\testing\Python.Tes
t.csproj]
eventtest.cs(28,40): warning CS0067: The event 'EventTest.PrivateEvent' is never used [C:\Users\denfromufa\Documents\py
thonnet\src\testing\Python.Test.csproj]
eventtest.cs(26,41): warning CS0067: The event 'EventTest.InternalEvent' is never used [C:\Users\denfromufa\Documents\p
ythonnet\src\testing\Python.Test.csproj]
eventtest.cs(18,48): warning CS0067: The event 'EventTest.InternalStaticEvent' is never used [C:\Users\denfromufa\Docum
ents\pythonnet\src\testing\Python.Test.csproj]
eventtest.cs(20,47): warning CS0067: The event 'EventTest.PrivateStaticEvent' is never used [C:\Users\denfromufa\Docume
nts\pythonnet\src\testing\Python.Test.csproj]
  Python.Test -> C:\Users\denfromufa\Documents\pythonnet\src\testing\bin\x64\ReleaseWin\Python.Test.dll
C:\Program Files (x86)\MSBuild\14.0\bin\amd64\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could no
t find rule set file "MinimumRecommendedRules.ruleset". [C:\Users\denfromufa\Documents\pythonnet\src\embed_tests\Python
.EmbeddingTest.csproj]
  Python.EmbeddingTest -> C:\Users\denfromufa\Documents\pythonnet\src\embed_tests\bin\x64\ReleaseWin\Python.EmbeddingTe
  st.dll
C:\Program Files (x86)\MSBuild\14.0\bin\amd64\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could no
t find rule set file "MinimumRecommendedRules.ruleset". [C:\Users\denfromufa\Documents\pythonnet\src\console\Console.cs
proj]
assemblyinfo.cs(13,35): warning CS0618: 'SecurityAction.RequestMinimum' is obsolete: 'Assembly level declarative securi
ty is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for m
ore information.' [C:\Users\denfromufa\Documents\pythonnet\src\console\Console.csproj]
  Console -> C:\Users\denfromufa\Documents\pythonnet\src\console\bin\x64\Release\nPython.exe
C:\Program Files (x86)\MSBuild\14.0\bin\amd64\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could no
t find rule set file "MinimumRecommendedRules.ruleset". [C:\Users\denfromufa\Documents\pythonnet\src\clrmodule\clrmodul
e.csproj]
  clrmodule -> C:\Users\denfromufa\Documents\pythonnet\src\clrmodule\bin\x64\ReleaseWin\clrmodule.dll
C:\Users\denfromufa\Documents\pythonnet\packages\UnmanagedExports.1.2.6\tools\RGiesecke.DllExport.targets(42,5): error
: Microsoft.Build.Utilities.ToolLocationHelper could not find ildasm.exe. [C:\Users\denfromufa\Documents\pythonnet\src\
clrmodule\clrmodule.csproj]
installing to build\bdist.win-amd64\wheel
running install
running install_lib
creating build\bdist.win-amd64
creating build\bdist.win-amd64\wheel
copying build\lib.win-amd64-3.5\clr.pyd -> build\bdist.win-amd64\wheel\.
running install_data
creating build\bdist.win-amd64\wheel\pythonnet-2.1.0.data
creating build\bdist.win-amd64\wheel\pythonnet-2.1.0.data\data
copying C:\Users\denfromufa\Documents\pythonnet\build\lib.win-amd64-3.5\Python.Runtime.dll -> build\bdist.win-amd64\wheel\pythonnet-2.1.0.data\data\..\..
copying Python.Runtime.dll.config -> build\bdist.win-amd64\wheel\pythonnet-2.1.0.data\data\..\..
running install_egg_info
running egg_info
creating pythonnet.egg-info
writing top-level names to pythonnet.egg-info\top_level.txt
writing pythonnet.egg-info\PKG-INFO
writing dependency_links to pythonnet.egg-info\dependency_links.txt
writing manifest file 'pythonnet.egg-info\SOURCES.txt'
reading manifest file 'pythonnet.egg-info\SOURCES.txt'
writing manifest file 'pythonnet.egg-info\SOURCES.txt'
Copying pythonnet.egg-info to build\bdist.win-amd64\wheel\.\pythonnet-2.1.0-py3.5.egg-info
running install_scripts
C:\Python\Python35_64b\lib\site-packages\wheel\pep425tags.py:77: RuntimeWarning: Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
  warn=(impl == 'cp')):
C:\Python\Python35_64b\lib\site-packages\wheel\pep425tags.py:81: RuntimeWarning: Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
  warn=(impl == 'cp')):
creating build\bdist.win-amd64\wheel\pythonnet-2.1.0.dist-info\WHEEL

Activity

  1. changed the title [-]windows 10 unmanaged exports issue - error : Microsoft.Build.Utilities.ToolLocationHelper could not find ildasm.exe[/-] [+]windows 10, python 3.5 unmanaged exports issue - error : Microsoft.Build.Utilities.ToolLocationHelper could not find ildasm.exe[/+] on May 26, 2016
  2. den-run-ai commented on May 26, 2016

    @den-run-ai
    ContributorAuthor

    looks like the wheel is build, installs fine and import clr works. So not sure why unmanaged exports is complaining?

  3. chunyisong commented on May 27, 2016

    @chunyisong

    I catch the same error.my error Details may be found in #220 . Wish find the solution。

  4. selikhovel commented on Jun 17, 2016

    @selikhovel

    Same error: "\UnmanagedExports.1.2.6\tools\RGiesecke.DllExport.targets(42,5): error : Microsoft.Build.Utilities.ToolLocationHelper could not find ildasm.exe." Windows 10, VS2015. .Net C# Has anyone found the solution?
    UPDATE: Solved! You have to update UnmanagedExports from 1.2.6 to 1.2.7 version.

  5. SlimeQ commented on Jun 6, 2018

    @SlimeQ

    I still get this error on DllExports.1.2.7

    C:\Users\quincyc\Documents\Github\pythonnet\packages\UnmanagedExports.1.2.7\tools\RGiesecke.DllExport.targets(58,3): error : Microsoft.Build.Utilities.ToolLocationHelper could not find ildasm.exe. [C:\Users\quincyc\Documents\Github\pyth
    onnet\src\clrmodule\clrmodule.csproj]
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions