-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix path to dotnet.sh
in AndroidSampleApp
project
#112590
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (1)
- src/mono/sample/Android/AndroidSampleApp.csproj: Language not supported
<RepoDotnet Condition="'$(RepoDotnet)' == '' and '$(OS)' == 'Windows_NT'">$(RepoRoot)dotnet.cmd</RepoDotnet> | ||
<RepoDotnet Condition="'$(RepoDotnet)' == '' and '$(OS)' != 'Windows_NT'">$(RepoRoot)dotnet.sh</RepoDotnet> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need RepoDotnet
property at all. We can instead just use $(DotNetTool)
at line 34: https://github.com/dotnet/runtime/pull/112590/files#diff-1e632e29d3bd8c79a2aa62b91516646c9bc2bf0d2fa55089c3d4f25669e85eb0R34
and remove RepoDotnet
.
DotNetTool
gets properly resolved in: https://github.com/dotnet/arcade/blob/ae3c938af5df4a2db45ded37dd05608ce59d8e5e/src/Microsoft.DotNet.Arcade.Sdk/tools/RepoLayout.props#L20-L31
for Windows and non-Windows hosts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Non-Windows path was missing a
..
. I switched it to usingRepoRoot
, since I find that clearer than the relative path from the csproj.