Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use RuntimeIdentifier for native library copy conditions #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gburning
Copy link

@gburning gburning commented Oct 3, 2024

Hi! This is Gabriel from Svep Design Center.

I noticed that I was unable to build the project for Windows from my Mac when deploying our project to a Windows server.

As such I've made adjustments to your .csproj to allow the use of a different runtime than the one I'm running using <RuntimeIdentifiers> or the -r|--runtime <RUNTIME_IDENTIFIER> flag of the dotnet cli.

Feel free to make any changes or comments.

@gburning
Copy link
Author

gburning commented Oct 3, 2024

Just realized this will not work when RID is not explicitly set. Will see if I can add a fallback.

@gburning
Copy link
Author

gburning commented Oct 3, 2024

Unfortunately it is unclear to me how to make this work. Targeting the RuntimeIdentifier directly is likely not a good idea.

Do you have any suggestions for being able to build the project for a different target than the local one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant