amerkoleci / Vortice.Windows

.NET bindings for Direct3D12, Direct3D11, WIC, Direct2D1, XInput, XAudio, X3DAudio, DXC, Direct3D9 and DirectInput.
MIT License
1.01k stars 73 forks source link

Having trouble building Vortice.Windows. #298

Closed Axiverse closed 2 years ago

Axiverse commented 2 years ago

I seem to be getting errors building the project. I've updated VS to the latest versions but are getting these errors on all projects:

1>C:\git\Vortice.Windows\src\Vortice.Dxc\Vortice.Dxc.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, please map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source.
1>C:\git\Vortice.Windows\src\Vortice.Dxc\Vortice.Dxc.csproj : error NU1008: Projects that use central package version management should not define the version on the PackageReference items but on the PackageVersion items: Microsoft.SourceLink.GitHub;SharpGen.Runtime.COM;Microsoft.SourceLink.GitHub;SharpGen.Runtime.COM.

Any ideas on how to resolve them?

amerkoleci commented 2 years ago

I switched to nuget SharpGen packages and should be fine now.