-
Notifications
You must be signed in to change notification settings - Fork 43
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
Warning about the 'Pack' target #114
Comments
These are the .NET Core SDK's. You need to have the latest installed. What version of VS are you using and what workloads did you select? I believe those SDK's are generally brought in by VS. |
I'm using Visual Studio Enterprise 15.8.2 and I have installed the Desktop .NET, Universal Windows Platform, ASP.NET And Web, Azure, Mobile and Cross-Platform .NET Core workloads. The dotnet --info command gives me the following information: .NET Core SDK: Ambiente di runtime: Host (useful for support): .NET Core SDKs installed: .NET Core runtimes installed: |
that looks right, do you have a small repro? |
Yes, you can find it at https://github.com/marcominerva/MultiTargetingIssue. Just set the compilation to Release and build the PlatformService project to see the warning. |
following |
1.6.55 is rolling out to NuGet now with fixes for this. As an aside, it happens if you use this as a |
I have created a new project using James Montemagno's Plugin for Xamarin, that by default includes a reference to MSBuild.Sdk.Extras v1.4.0. I compile in Release mode (that has the "Generate NuGet package on build" option checked) and everything works fine.
However, if I update MSBuild.Sdk.Extras to version 1.6.52, the compilation in Release gives me the following warning:
C:\Users\marco.nuget\packages\msbuild.sdk.extras\1.6.52\Build\Workarounds.targets(121,5): warning : There are known issues using the 'Pack' target that comes with the v1 SDKs. Update to v2 and above SDKs to use the fixed 'Pack' target. If you don't need the fixed 'Pack' target the set 'ExtrasIgnoreOldSdkWarning' property to 'true'. If you need to use the v1 SDKs and to use the 'Pack' target, then add a 'NuGet.Build.Tasks.Pack' v4.3.0 and above, as a dependency to proceed.
To which SDKs (v1 & v2) are the warning referring to?
The text was updated successfully, but these errors were encountered: