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

Specifying RuntimeIdentifier causes the CodeCompiler to fail #156

Open
Ethereal77 opened this issue Jun 19, 2023 · 0 comments
Open

Specifying RuntimeIdentifier causes the CodeCompiler to fail #156

Ethereal77 opened this issue Jun 19, 2023 · 0 comments

Comments

@Ethereal77
Copy link

I have a project that uses TemplateGenerator to process template files. Whenever the project is just compiled with the net6.0 TFM but no RID, the project runs without problems.

However, if I specify the RuntimeIdentifier win-x64, it causes the runtime assembly System.Core.dll to be copied to the output directory. As the logic to decide if the host is a .NET Core one is based on comparing the directory name, and checking if dotnet.exe exists there, it fails because this is not the directory where the .NET SDK is installed.

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

No branches or pull requests

1 participant