Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview7 & PInvoke #35

Open
MartyIX opened this issue Aug 18, 2021 · 2 comments
Open

Preview7 & PInvoke #35

MartyIX opened this issue Aug 18, 2021 · 2 comments

Comments

@MartyIX
Copy link

MartyIX commented Aug 18, 2021

Hi Team,

when compiling in my MSVS 17 preview 3.1, I get a compilation error that PInvoke.User32 cannot be found. Could it be fixed?

Thank you

@martin-juul
Copy link

martin-juul commented Aug 18, 2021

Add the sources below to NuGet.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
+   <add key="nuget" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
+   <add key="vs-impl-public" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vs-impl/nuget/v3/index.json" protocolVersion="3" />
    <add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
    <add key="xamarin" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/xamarin-impl/nuget/v3/index.json" />
    <add key="public"  value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
  </packageSources>
</configuration>

Then restore the packages for your solution.

@MartyIX
Copy link
Author

MartyIX commented Aug 18, 2021

I have found a workaround too in the meantime. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants