-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
I would like to change RunArguments based on other property value
I have this snippet
<_RunExtraArguments Condition="'$(WasmEnableThreads)' == 'true'">--apply-cop-headers</_RunExtraArguments>
<RunArguments>"$(_BlazorDevServerDll)" --applicationpath "$(TargetPath)" $(_RunExtraArguments)</RunArguments>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, the WasmEnableThreads property value is empty when RunArguments are computed.
Do you have any advice on how accomplish such use case?