microsoft / DirectX-Graphics-Samples

This repo contains the DirectX Graphics samples that demonstrate how to build graphics intensive applications on Windows.
MIT License
5.97k stars 2.01k forks source link

NuGet errors when building D3D12HelloWorld #881

Open Witek902 opened 4 weeks ago

Witek902 commented 4 weeks ago

When building D3D12HelloWorld.sln solution I'm getting following errors: 5>D:\DEV\EXTERNAL\DirectX-Graphics-Samples\Samples\Desktop\D3D12HelloWorld\src\HelloVAResourceInterop\D3D12HelloVAResourceInterop.vcxproj(156,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Direct3D.D3D12.1.613.1\build\native\Microsoft.Direct3D.D3D12.props.

Microsoft Visual Studio Community 2022 Version 17.10.6 VisualStudio.17.Release/17.10.6+35201.131 Microsoft .NET Framework Version 4.8.09037

walbourn commented 4 weeks ago

If you are building from in the IDE, the NuGet restore should happen automatically. If you are building from the command-line, you need to use nuget restore D3D12HelloWorld.sln after downloading nuget.exe.

Witek902 commented 3 weeks ago

I am trying to build from IDE

oliverxyy commented 3 weeks ago

The D3D12 version specified in packages.config is different from .vcxproj file, fix either of them can work. packages.config: `

`

*.vcxproj `

`

bub1ick commented 2 weeks ago

The issue stems from the commit regarding issue #879 (commit bf2e880). It changed the required package version in lots of different packges.config files. Hope this helps.