sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.68k stars 641 forks source link

[Help] Can't build following instructions in README #1076

Open nefarius opened 5 years ago

nefarius commented 5 years ago

Greetings,

I tripple-checked that I've got all the required dependencies installed but I unfortunately can't build any of the projects. I guess I'm still missing vital dependencies which are not resolved:

NETSDK1004  Assets file '...\SharpDX\Source\SharpDX\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.  SharpDX C:\Program Files\dotnet\sdk\2.1.401\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets    198 

build.cmd, msbuild /restore and dotnet restore all fail (see screenshots).

image

image

image

Help pls 🙂 🐱

evilC commented 5 years ago

Similar issues to Nefarius, seems to be some kind of problem with .Net Dependencies:

Alan-FGR commented 5 years ago

I can confirm SharpDX is impossible to build. I ported a code from C++ but for some reason when I create the device passing a SDL2 window handle SharpDX fails and I'd like to step through the source in order to debug that.

xoofx commented 5 years ago

@jkoritzinsky I think I had the same problem with the current codebase where I had to run the build manually to get the assemblies in order to compile more incrementally when opening the VS solutions. Could you improve the situation so that we can compile everything from VS as it was done before?

jkoritzinsky commented 5 years ago

I'll see what I can do.

nefarius commented 5 years ago

Ah, glad to hear it's not just my incompetence 😅

Alan-FGR commented 5 years ago

Hey guys, are the generated pinvokes (e.g. D3D11 stuff) available somewhere? I see the generated pinvokes for D3D10 are in the repo but the others aren't. Thank you.

jkoritzinsky commented 5 years ago

They're generated as part of the build.

Alan-FGR commented 5 years ago

Yes, but since I can't build I was wondering if they're available somewhere else so I can try and add them manually since I don't really need the whole DirectX, just Direct3D11 (and deps). I thought that maybe they'd be available in appveyor but I couldn't find a way to get that.

bdachev commented 5 years ago

Out of curiosity I tried to compile latest SharpDX from master and I succeeded eventually but had following problems:

jkoritzinsky commented 5 years ago

The issue in the ParseCPlusPlus task is a bug in SharpGenTools. Can you file an issue there?

jkoritzinsky commented 5 years ago

Do you have the Windows 10 SDK for the initial Windows 10 release? You need the managed SDK for UAP 10.0.14393.0 to build in VS.

bdachev commented 5 years ago

Hi Jeremy, you are correct that I don't have 10.0.14393 SDK installed. What worried me was that it was able to build Debug from scratch without that SDK but failed on Release so maybe there is something simple that needs to be fixed for that configuration. Anyway I can confirm that can build both Debug and Release configurations from scratch so it seems your latest contributions have fixed it. And also I can confirm that it can be build without 10.0.14393 SDK so maybe it is no longer needed. I do have installed 10.0.16299 though (both desktop and UWP). B.

bdachev commented 5 years ago

OK. My mistake. It turned out that I have 10.0.14393 SDK installed on my system kept by VS2015. When I uninistalled it SharpDX no longer builds. So it is still a requirement.