WindowsCompositionSamples
WindowsCompositionSamples copied to clipboard
Build error in VS2019 and VS2019 preview
:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(4545,5): error MSB3030: Could not copy the file "Microsoft\WindowsCompositionSamples\SamplesCommon\SamplesCommon\bin\x86\Debug\SamplesCommon\CompositionShadow.xbf" because it was not found. 4>C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(4545,5): error MSB3030: Could not copy the file "Microsoft\WindowsCompositionSamples\SamplesCommon\SamplesCommon\bin\x86\Debug\SamplesCommon\LightControl.xbf" because it was not found. 4>C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(4545,5): error MSB3030: Could not copy the file "Microsoft\WindowsCompositionSamples\SamplesCommon\SamplesCommon\bin\x86\Debug\SamplesCommon\ColorMixer.xbf" because it was not found. 4>C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(4545,5): error MSB3030: Could not copy the file "Microsoft\WindowsCompositionSamples\SamplesCommon\SamplesCommon\bin\x86\Debug\SamplesCommon\SamplesCommon.xr.xml" because it was not found.
Doesn't compile with VS2019. Too many errors to sort through.
I did get it to build with VS2019, but it crashes instantly. Here are a couple pointers:
- In the SamplesNative project properties, change
Platform Toolset
toVisual Studio 2019 (v142)
- Manage NuGet packages for the solution and update
Win2D.uwp
to 1.25 andMicrosoft.Xaml.Behaviors.Uwp.Managed
to whatever version is available and thenMicrosoft.NETCore.UniversalWindowsPlatform
to 6.2.12
Run... aaannnd crash...
I needed to try a sample and better understand it, so I was able to get it to build in VS 2019. Submitted PR #350