|
3 | 3 | <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
4 | 4 | <PropertyGroup Condition=" '$(Configuration)' == 'debug' Or '$(Configuration)' == 'release' ">
|
5 | 5 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
| 6 | + <PnPCorePath Condition=" '$(PnPCorePath)' == '' "> |
| 7 | + </PnPCorePath> |
6 | 8 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
7 | 9 | <ProjectGuid>{1DDE6F0A-CA49-419A-9CE8-A6CA02F43CE0}</ProjectGuid>
|
8 | 10 | <OutputType>Library</OutputType>
|
|
27 | 29 | <OutputType>Library</OutputType>
|
28 | 30 | <AppDesignerFolder>Properties</AppDesignerFolder>
|
29 | 31 | <RootNamespace>SharePointPnP.PowerShell.Commands</RootNamespace>
|
30 |
| - <AssemblyName>SharePointPnP.PowerShell.SP2013.Commands</AssemblyName> |
| 32 | + <AssemblyName>SharePointPnP.PowerShell.2013.Commands</AssemblyName> |
31 | 33 | <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
32 | 34 | <FileAlignment>512</FileAlignment>
|
33 | 35 | <SccProjectName>
|
|
46 | 48 | <OutputType>Library</OutputType>
|
47 | 49 | <AppDesignerFolder>Properties</AppDesignerFolder>
|
48 | 50 | <RootNamespace>SharePointPnP.PowerShell.Commands</RootNamespace>
|
49 |
| - <AssemblyName>SharePointPnP.PowerShell.SP2016.Commands</AssemblyName> |
| 51 | + <AssemblyName>SharePointPnP.PowerShell.2016.Commands</AssemblyName> |
50 | 52 | <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
51 | 53 | <FileAlignment>512</FileAlignment>
|
52 | 54 | <SccProjectName>
|
|
272 | 274 | </ItemGroup>
|
273 | 275 | </Otherwise>
|
274 | 276 | </Choose>
|
| 277 | + <Choose> |
| 278 | + <When Condition=" '$(PnPCorePath)' == '' "> |
| 279 | + <ItemGroup> |
| 280 | + <Reference Include="OfficeDevPnP.Core"> |
| 281 | + <SpecificVersion>False</SpecificVersion> |
| 282 | + <HintPath>..\..\PnP-Sites-Core\Core\OfficeDevPnP.Core\bin\$(Configuration)\OfficeDevPnP.Core.dll</HintPath> |
| 283 | + </Reference> |
| 284 | + </ItemGroup> |
| 285 | + </When> |
| 286 | + <Otherwise> |
| 287 | + <ItemGroup> |
| 288 | + <Reference Include="OfficeDevPnP.Core"> |
| 289 | + <SpecificVersion>False</SpecificVersion> |
| 290 | + <HintPath>$(PnPCorePath)</HintPath> |
| 291 | + </Reference> |
| 292 | + </ItemGroup> |
| 293 | + </Otherwise> |
| 294 | + </Choose> |
275 | 295 | <ItemGroup>
|
276 | 296 | <Reference Include="Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
277 | 297 | <Private>True</Private>
|
|
289 | 309 | <HintPath>..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
|
290 | 310 | <Private>True</Private>
|
291 | 311 | </Reference>
|
292 |
| - <Reference Include="OfficeDevPnP.Core"> |
293 |
| - <SpecificVersion>False</SpecificVersion> |
294 |
| - <HintPath>..\..\PnP-Sites-Core\Core\OfficeDevPnP.Core\bin\$(Configuration)\OfficeDevPnP.Core.dll</HintPath> |
295 |
| - </Reference> |
296 | 312 | <Reference Include="System" />
|
297 | 313 | <Reference Include="System.Configuration" />
|
298 | 314 | <Reference Include="System.Core" />
|
|
556 | 572 | </EmbeddedResource>
|
557 | 573 | </ItemGroup>
|
558 | 574 | <ItemGroup>
|
559 |
| - <None Include="ModuleFiles\SharePointPnPPowerShellSP2016.psd1"> |
| 575 | + <None Include="ModuleFiles\SharePointPnPPowerShell2016.psd1"> |
560 | 576 | <CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
561 | 577 | </None>
|
562 |
| - <None Include="ModuleFiles\SharePointPnP.PowerShell.SP2016.Commands.Format.ps1xml"> |
| 578 | + <None Include="ModuleFiles\SharePointPnP.PowerShell.2016.Commands.Format.ps1xml"> |
563 | 579 | <CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
564 | 580 | </None>
|
565 |
| - <None Include="ModuleFiles\SharePointPnPPowerShellSP2013.psd1"> |
| 581 | + <None Include="ModuleFiles\SharePointPnPPowerShell2013.psd1"> |
566 | 582 | <CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
567 | 583 | </None>
|
568 |
| - <None Include="ModuleFiles\SharePointPnP.PowerShell.SP2013.Commands.Format.ps1xml"> |
| 584 | + <None Include="ModuleFiles\SharePointPnP.PowerShell.2013.Commands.Format.ps1xml"> |
569 | 585 | <CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
570 | 586 | </None>
|
571 | 587 | </ItemGroup>
|
572 | 588 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
573 | 589 | <PropertyGroup>
|
574 |
| - <PostBuildEvent>"$(SolutionDir)\CmdletHelpGenerator\bin\$(ConfigurationName)\SharePointPnP.PowerShell.CmdletHelpGenerator.exe" "$(TargetPath)" "$(TargetDir)\$(TargetFileName)-help.xml" "$(SolutionDir) |
575 |
| -C:\windows\system32\windowspowershell\v1.0\powershell.exe -ExecutionPolicy bypass -NoLogo -NonInteractive -Command .'$(SolutionDir)PostBuild.ps1' -ProjectDir:'$(ProjectDir)' -ConfigurationName:'$(ConfigurationName)' -TargetDir:'$(TargetDir)' -TargetFileName:'$(TargetFileName)' -TargetName:'$(TargetName)' -SolutionDir:'$(SolutionDir)' |
576 |
| -</PostBuildEvent> |
| 590 | + <PostBuildEvent> |
| 591 | + "$(SolutionDir)\CmdletHelpGenerator\bin\$(ConfigurationName)\SharePointPnP.PowerShell.CmdletHelpGenerator.exe" "$(TargetPath)" "$(TargetDir)\$(TargetFileName)-help.xml" "$(SolutionDir) |
| 592 | + C:\windows\system32\windowspowershell\v1.0\powershell.exe -ExecutionPolicy bypass -NoLogo -NonInteractive -Command .'$(SolutionDir)PostBuild.ps1' -ProjectDir:'$(ProjectDir)' -ConfigurationName:'$(ConfigurationName)' -TargetDir:'$(TargetDir)' -TargetFileName:'$(TargetFileName)' -TargetName:'$(TargetName)' -SolutionDir:'$(SolutionDir)' |
| 593 | + </PostBuildEvent> |
577 | 594 | <ProjectGuid>{1DDE6F0A-CA49-419A-9CE8-A6CA02F43CE0}</ProjectGuid>
|
578 | 595 | </PropertyGroup>
|
579 | 596 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
0 commit comments