FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Can't add project to existing solution · Issue #1853 · pythonnet/pythonnet · GitHub

Repository navigation

Can't add project to existing solution #1853

Closed

Description

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'.

Activity

  1. matthiasburger commented on Jul 5, 2022

    Author

    in the Directory.Build.props there is this line:

    <FullVersion>$([System.IO.File]::ReadAllText("version.txt"))</FullVersion>

    which points to a non-existing file.

    This doesn't work on Mac. You cannot even open the solution.

  2. filmor commented on Jul 5, 2022

    Member

    This is not a supported use case. Please use a nuget package.

  3. filmor commented on Jul 5, 2022

    Member

    To elaborate, now that I have a bit more time: This file is part of the repo and the respective code expects that to be the root of the build process. It should be possible to adjust the build props to use its own directory as the source of the lookup, but this will still not be a supported scenario.

  4. lostmsu commented on Jul 5, 2022

    Member

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

  5. filmor commented on Jul 6, 2022

    Member

    This should be fixed now.

  6. matthiasburger commented on Jul 6, 2022

    Author

    @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 :D

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


      Back | FazBrowse Home | New Git URL