Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit defabfd

Browse files
adalonkzu
authored andcommitted
Using packages.config for our PCL project template
Fixes bug#52085 - Getting popup error message while creating multi-platform 'Single for all platform' This avoids to get the "nvalid framework version '.0'" error from the NuGet.Client tools And also making sure the version targets are correctly defined still when the NuGet.Build.Packages.targets are imported after
1 parent 1dded6e commit defabfd

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/VisualStudio/NuGet.Packaging.VisualStudio.15/Templates/Projects/PortableClassLibrary/PortableClassLibrary.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1414
<TargetFrameworkProfile>Profile111</TargetFrameworkProfile>
1515
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
16-
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
1716
</PropertyGroup>
1817
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1918
<DebugSymbols>true</DebugSymbols>

src/VisualStudio/NuGet.Packaging.VisualStudio.15/Templates/Projects/PortableClassLibrary/PortableClassLibrary.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33

4-
<Target Name="GetPackageVersion" Returns="$(PackageVersion)">
4+
<Target Name="SetPackageVersion" BeforeTargets="GetPackageVersion" Returns="$(PackageVersion)">
55
<!-- NOTE: customize to determine your package version more dynamically -->
66
<PropertyGroup>
77
<PackageVersion>1.0.0</PackageVersion>

0 commit comments

Comments
 (0)