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

Compile error with Vortice.Direct3D9, etc. #433

Closed tictac1234 closed 7 months ago

tictac1234 commented 7 months ago

Hello.

I was using SharpDX and I'm thinking of moving to Vortice.

However, I'm unable to compile the following project...

error NU1008: Projects that use central package version management should not define the version on the PackageReference items but on the PackageVersion items: SharpGen.Runtime.COM;Vortice.Mathematics;SharpGen.Runtime.COM;Vortice.Mathematics.

Also, for some reason, I can't open Nuget Manager from Vortice.Direct3D9 project.

I want to custom build and use Vortice.Direct3D9 and would appreciate it if you could fix this problem.

Thank you.

amerkoleci commented 7 months ago

Hi, I don't have any issues building non of the projects you said, in case please use nuget releases or just simple add support for central packages support.

https://github.com/amerkoleci/Vortice.Windows/blob/main/Directory.Build.props#L24C6-L24C36 https://github.com/amerkoleci/Vortice.Windows/blob/main/Directory.Packages.props

Docs here: https://learn.microsoft.com/it-it/nuget/consume-packages/central-package-management

tictac1234 commented 7 months ago

As shown below, all builds from the command prompt were successful.

dotnet restore dotnet build

However, Opening Vortice.Windows.sln, and try to build from Visual Studio, it fails with the error mentioned earlier.

For now, I will build from the command prompt. Thanks you.