<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<MonoRuntimeDebuggerEnabled>true</MonoRuntimeDebuggerEnabled>
<!--<DefineConstants>TRACE;DEBUG</DefineConstants>-->
</PropertyGroup>
Enabling DefineConstants at DEBUG causes WASM head to fail with The type or namespace name '_View' could not be found on the github.com/unoplatform/workshop app.
Nuget Package: latest
Package Version(s):
Affected platform(s):
Visual Studio
Relevant plugins
msbuild binlog - msbuild.zip
Resolved by adding $(DefineConstants);
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<MonoRuntimeDebuggerEnabled>true</MonoRuntimeDebuggerEnabled>
<DefineConstants>$(DefineConstants);TRACE;DEBUG</DefineConstants>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
Specifically - what's happening here is DefineConstants overrides existing constants that have been defined which means Uno/WASM symbols are deleted. Will update documentation and workshop with this guidance.
Most helpful comment
Resolved by adding
$(DefineConstants);Specifically - what's happening here is
DefineConstantsoverrides existing constants that have been defined which means Uno/WASM symbols are deleted. Will update documentation and workshop with this guidance.