Version 1903 not working
-Might give error such as Build error MSB4166: Child node "2" exited prematurely. This is a known issue specific to 1903. The best fix is to simply use different target version. Microsoft recommends targeting version 2004 (build 19041) instead.
Debug build not working
-In some UWP versions, for instance version 2004, debug build might not run giving error: Run Error: an unhandled win32 exception occurred in [3088] (the number is different for different builds). In these cases, make sure you have added <EnableTypeInfoReflection>false</EnableTypeInfoReflection> line to you csproj file to the respective Propertygroup (Debug|x86, Release|x86 etc.). For example:
Code: Select all
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<EnableTypeInfoReflection>false</EnableTypeInfoReflection>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
-Try disabling Compile with .NET Native tool chain via project’s Properties -> Build
Activation of Windows Store App 'Application name' failed
-Try cleaning the solution. Delete bin and obj folders and rebuild as instructed here:
https://docs.microsoft.com/en-us/previo ... dfrom=MSDN
Processing Resources failed with error : Duplicate Entry.
-Alternatively complains about Conflicting values for resource. In these cases, try repairing Visual Studio. Open "Visual Studio Installer" and do a "Repair" procedure (behind More combo box).