Reputation: 30885
I try to compile SharpDX library using windows 10 64 bit, visual studio 2019 but when I'm loading SharpDX.sln and hit compile in x64 debug mode I'm getting a lot an errors in code generation:
Build started...
1>------ Build started: Project: SharpDX, Configuration: Debug Any CPU ------
Error occurred while restoring NuGet packages: The operation failed as details for project SharpDX could not be loaded.
1>C:\Users\foo\.nuget\packages\microsoft.build.tasks.git\1.0.0-beta2-18618-05\build\Microsoft.Build.Tasks.Git.targets(36,5): warning : Submodule 'Samples' doesn't have any commit, the source code won't be available via source link.
1>C:\Users\foo\.nuget\packages\sharpgentools.sdk\1.1.3-ci489\build\SharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:\Dev\my\csharp\SharpDX\Source\SharpDX/obj\Debug\net40\SharpGen/SharpGen-MSBuild.h:47:
1>C:\Users\foo\.nuget\packages\sharpgentools.sdk\1.1.3-ci489\build\SharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:\Dev\my\csharp\SharpDX\Source\SharpDX/obj\Debug\net40\SharpGen/sharpdx-xaudio2.h:2:
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\xaudio2.h(65,68): Process error CX0001: cannot call operator __uuidof on a type with no GUID
1>C:\Users\foo\.nuget\packages\sharpgentools.sdk\1.1.3-ci489\build\SharpGenTools.Sdk.targets(174,5): Process warning CX0002: EXTERN_C const GUID DECLSPEC_SELECTANY IID_IXAudio2Extension = __uuidof(IXAudio2Extension);
1>C:\Users\foo\.nuget\packages\sharpgentools.sdk\1.1.3-ci489\build\SharpGenTools.Sdk.targets(174,5): Process warning CX0002:
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\xaudio2.h(71,59): Process error CX0001: cannot call operator __uuidof on a type with no GUID
1>C:\Users\foo\.nuget\packages\sharpgentools.sdk\1.1.3-ci489\build\SharpGenTools.Sdk.targets(174,5): Process warning CX0002: EXTERN_C const GUID DECLSPEC_SELECTANY IID_IXAudio2 = __uuidof(IXAudio2);
1>C:\Users\foo\.nuget\packages\sharpgentools.sdk\1.1.3-ci489\build\SharpGenTools.Sdk.targets(174,5): Process warning CX0002:
1>C:\Users\foo\.nuget\packages\sharpgentools.sdk\1.1.3-ci489\build\SharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:\Dev\my\csharp\SharpDX\Source\SharpDX/obj\Debug\net40\SharpGen/SharpGen-MSBuild.h:47:
1>C:\Users\foo\.nuget\packages\sharpgentools.sdk\1.1.3-ci489\build\SharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:\Dev\my\csharp\SharpDX\Source\SharpDX/obj\Debug\net40\SharpGen/sharpdx-xaudio2.h:3:
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\xaudio2fx.h(31,65): Process error CX0001: cannot call operator __uuidof on a type with no GUID
1>C:\Users\foo\.nuget\packages\sharpgentools.sdk\1.1.3-ci489\build\SharpGenTools.Sdk.targets(174,5): Process warning CX0002: EXTERN_C const GUID DECLSPEC_SELECTANY CLSID_AudioVolumeMeter = __uuidof(AudioVolumeMeter);
1>C:\Users\foo\.nuget\packages\sharpgentools.sdk\1.1.3-ci489\build\SharpGenTools.Sdk.targets(174,5): Process warning CX0002:
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\xaudio2fx.h(34,60): Process error CX0001: cannot call operator __uuidof on a type with no GUID
// ...
1>C:\Dev\my\csharp\SharpDX\Source\SharpDX/obj\Debug\net40\SharpGen/SharpGen-MSBuild.xml. Check previous errors.
>Done building project "SharpDX.csproj" -- FAILED.
Any idea why?
Upvotes: 3
Views: 234