- NuGet 5.0 support
- Fixed PackageReference metadata not added for development dependencies
- Fixed DotNetCliToolReferences not being restored
- Fixed Multiplatform Library build error with Android projects
NuGet 5.0 support
NuGet 188.8.131.5288 is now included with Visual Studio for Mac 8.1.
Fixed PackageReference metadata not added for development dependencies
Installing a NuGet package that is a development dependency, such as GitInfo, would not add the PrivateAssets nor the IncludeAssets metadata to the PackageReference. This is now supported and mirrors the behaviour of ‘dotnet add package’ and Visual Studio on Windows.
Fixed DotNetCliToolReferences not being restored
DotNetCliToolReferences are available in the package dependency graph but are treated as separate projects in this graph. Since these did not map to an existing project in the solution they were not added to the full dependency graph which resulted in these tools not being restored.
DotNetCliToolReferences are only restored when the entire solution is restored. Restoring a single project only restores the project itself not the dotnet cli tool project referenced by the project.
MSBuild supports restoring DotNetCliToolReferences in any project type that uses PackageReferences so Visual Studio for Mac also supports this.
Fixed Multiplatform Library build error with Android projects
When generating a Portable Class Library (PCL) assembly from the intersection of project assemblies the ApiIntersect build task would throw an exception since it could not resolve the Mono.Android assembly. This problem has been fixed in a more recent NuGet.Build.Packaging where the failure to resolve has been converted to a warning.
1 2 3 4 5 6 7 8 9 10
An updated NuGet.Build.Packaging has not been published to nuget.org so only new projects created with Visual Studio for Mac will get the NuGet package containing the fix.