Skip to content

Commit a8e4a28

Browse files
committed
updated project for release
1 parent e087025 commit a8e4a28

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Commands/PnP.PowerShell.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<Configurations>Debug;Release</Configurations>
1414
<PnPFrameworkPath Condition="'$(PnPFrameworkPath)' == ''"></PnPFrameworkPath>
1515
<PnPCoreSdkPath Condition="'$(PnPCoreSdkPath)' == ''"></PnPCoreSdkPath>
16+
<IsRelease></IsRelease>
1617
<IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</IsWindows>
1718
<IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX>
1819
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
@@ -46,7 +47,8 @@
4647
<PackageReference Include="Microsoft.SharePointOnline.CSOM" Version="16.1.*" />
4748
<PackageReference Include="Microsoft.Extensions.Http" Version="2.2.0" />
4849
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
49-
<PackageReference Include="PnP.Framework" Version="1.1.*-*" Condition="'$(PnPFrameworkPath)' == ''" />
50+
<PackageReference Include="PnP.Framework" Version="1.2.*-*" Condition="'$(PnPFrameworkPath)' == '' and '$(IsRelease)' != '1'" />
51+
<PackageReference Include="PnP.Framework" Version="*" Condition="'$(IsRelease)' == '1'" />
5052
<PackageReference Include="PnP.Core" Version="0.5.*-*" Condition="'$(PnPCoreSdkPath)' == ''" />
5153
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0" />
5254
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.7.0" />
@@ -71,7 +73,7 @@
7173
</Reference>
7274
</ItemGroup>
7375

74-
<ItemGroup Condition="'$(PnPFrameworkPath)' != ''">
76+
<ItemGroup Condition="'$(PnPFrameworkPath)' != '' and '$(IsRelease)' != '1'">
7577
<Reference Include="PnP.Framework" Condition="'$(PnPFrameworkPath)' != ''">
7678
<HintPath>$(PnPFrameworkPath)</HintPath>
7779
<Private>true</Private>

0 commit comments

Comments
 (0)