Replies: 1 comment
-
The And also, it's very discouraged to set property under Configuration/Platform combination. Use calculation expression instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I develop a net6 application for both win64 and osx-x64 and I would like to set the OutputPath to a custom path.
I started with only the win64 version. I use the x64 solution configuration
Here was my csproj :
Then I add the osx version turning into this :
Using this, when I compile or publish on the Mac, the OutputPath is not set correctly, it goes to bin/Release/net6/ or bin/Release/net6/osx-x64/publish when I publish (using osx-x64).
I tried to add this in the csproj without luck :
and worse, on Windows, I can't start debugging the project, there are a message saying "There is no project configuration matching the active solution configuration". in the configuration manager of the solution, project is now on AnyCPU as platform instead of x64
Can I keep x64 as platform (for win and osx) and set the output path based on the RuntimeIdentifier if specified ?
Beta Was this translation helpful? Give feedback.
All reactions