CodeMinion icon indicating copy to clipboard operation
CodeMinion copied to clipboard

CodeMinion solution misses Python.Runtime.csproj

Open epignatelli opened this issue 6 years ago • 6 comments

I can't compile any project from the CodeMinion solution, error below:

Severity	Code	Description	Project	File	Line	Suppression State
Error	NU1104	Unable to find project 'C:\Users\epignatel\Documents\repos\pythonnet\src\runtime\Python.Runtime.csproj'. Check that the project reference is valid and that the project file exists.	Python.Included	C:\Users\epignatel\Documents\repos\codeminion\src\Python.Included\Python.Included.csproj	1	

Specifically, the Python.Runtime project does not load (unavailable).

Am I missing something?

epignatelli avatar Jul 30 '19 08:07 epignatelli

I solved by cloning the https://github.com/SciSharp/pythonnet repository at the same folder level as the CodeMinion solution.

root
|- CodeMinion
|- pythonnet

Is it worth adding it to the readme? I can pr a diff if it feels right for you guys.

epignatelli avatar Jul 30 '19 08:07 epignatelli

Apologies, I am still struggling with compiling this code. I am compiling the DebugWin configuration, running Windows 10 and Visual Studio 2017. Is there any documentation on which build configuration to use?

Some context: I am trying to generate a slightly different version of Numpy. While using the configuration above, the code compiles without errors. Although, I cannot see any console application in CodeMinion.ApiGenerator/bin/Debug/*/. Am I missing something?

epignatelli avatar Jul 30 '19 08:07 epignatelli

pythonnet

You are right, this should be documented. By the way, the correct repo to use is: https://github.com/henon/pythonnet_netstandard

henon avatar Jul 30 '19 17:07 henon

Apologies, I am still struggling with compiling this code. I am compiling the DebugWin configuration, running Windows 10 and Visual Studio 2017. Is there any documentation on which build configuration to use?

Some context: I am trying to generate a slightly different version of Numpy. While using the configuration above, the code compiles without errors. Although, I cannot see any console application in CodeMinion.ApiGenerator/bin/Debug/*/. Am I missing something?

Use the Debug configuration please. The Target is .NET Core 2.1

henon avatar Jul 30 '19 17:07 henon

You are right, this should be documented. By the way, the correct repo to use is: https://github.com/henon/pythonnet_netstandard

Precious, thanks very much. I think git submodules might be very useful in this specific case. Do you have any plan on that already?

Use the Debug configuration please. The Target is .NET Core 2.1

I'll give it a try, thanks

epignatelli avatar Jul 31 '19 08:07 epignatelli

I agree. Git submodules would be the perfect solution for CodeMinion, also for the generated libraries. Right now, whenever I release a new version I have to copy the updated generated code from CodeMinion to the separate library repos. It is a shame I didn't I think of it myself ... ;). However, I am quite busy right now, so I'll not be able to change it right now.

henon avatar Jul 31 '19 08:07 henon