-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
How gets RunArguments
property evaluated?
#32551
Comments
The problem is that I vaguely remember that there was an issue on this topic here already, but I can't find it right now. |
AFAICT, in .NET SDK 7.0.105, dotnet run passes |
I tested it today with
I have a simple console project echoing arguments <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RunCommand>cmd.exe</RunCommand>
<RunArguments>/c "echo '$(WasmEnableThreads)'"</RunArguments>
</PropertyGroup>
</Project> The output is
Is it a regression? |
Here's what the behavior should be:
@nagilson can you verify the first two points on preview5? If we're not applying the properties to the evaluation then we need to start doing so. |
It looks like there are two problems:
|
We have open WASM issue dotnet/runtime#85674 in which we also discuss how to also separate arguments to host VM and also mono VM. Possibly with multiple Host VM (not dotnet): Mono runtime (dotnet VM): Perhaps there should be pass-thru argument like We considered some side channel, like |
Can we spin this off into a separate issue so it can be fixed independent of the discussion here? |
I would like to change
RunArguments
based on other property valueI have this snippet
If
WasmEnableThreads
property is set in the csproj, it works as expected (_RunExtraArguments
is set to--apply-cop-headers
).But if I pass it as an agrument on command line
dotnet run /p:WasmEnableThreads=true
, theWasmEnableThreads
property value is empty whenRunArguments
are computed.Do you have any advice on how accomplish such use case?
The text was updated successfully, but these errors were encountered: