question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't add project to existing solution

See original GitHub issue

Environment

  • Pythonnet version: latest (05.07.22)
  • Python version: 3.10
  • Operating System: Mac OS 12.4
  • .NET Runtime: .net 6

Details

I wanted to add the Python.Runtime.csproj into my existing solution but I get following exception:

Unable to load project and obtain project information from MsBuild. Try to change MsBuild version in ‘Settings | Build, Execution, Deployment | Toolset and Build’. Probably this project is incompatible with the current MsBuild. MsBuild error details: The expression “[System.IO.File]::ReadAllText(version.txt)” cannot be evaluated. Could not find file ‘/private/var/folders/qt/cqy7_g9x3j14tcrwf5w_kfj80000gn/T/version.txt’.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lostmsucommented, Jul 5, 2022

@matthiasburger TL;DR; you can completely remove that line and later add your own versioning if needed.

0reactions
matthiasburgercommented, Jul 6, 2022

@filmor thanks for fixing it 😃

just to clarify, of course this scenario is not supported. But as long as I don’t want to make custom changes on your code it’s much easier to clone and pull changes instead of creating a fork and merge your changes every time 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot add existing project to solution
1. What kind of the project you created ? · 2. Does this happen on all type projects or specific one? · 3....
Read more >
Can't add new project to existing Solution
I have a WinForms application. I see the solution file, but when I try to add new project to it and select the...
Read more >
Add an Existing Project to a Solution - SQL Server
In the Add Existing Project dialog box, locate the project you want to add, select the project file, and then click Open. The...
Read more >
Why am I unable to add an existing project to my solution in ...
I am unable to add an existing project or an existing item to any project or solution in visual studio 2008 (SP1). I...
Read more >
How do I add an existing project to a solution in visual ...
The alternative is to create a new project yourself, inside VS, and then add every source file to the project, by right-clicking the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found