Skip to content

Commit

Permalink
More nuget work required
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottIsAFool committed Jul 26, 2015
1 parent 6f93ed5 commit 2fefdf3
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 10 deletions.
17 changes: 15 additions & 2 deletions build/default.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,23 @@ task Build -depends Clean, Setup, Version -description "Build all projects and g

$projectDir = "$binariesDir\$projectName"
$configurationDir = "$projectDir\$configurationFolder"
$propertiesDir = "$configurationDir\$projectName\Properties"
$tempPropertiesDir = "$tempBinariesDir\$fullProjectName\Properties\"

New-Item -Path $configurationDir -ItemType Directory | Out-Null

$tempPropertiesDirExists = Test-Path -PathType Container $tempPropertiesDir
if($tempPropertiesDirExists -eq $true){

$propertiesDirExists = Test-Path -PathType Container $propertiesDir
if($propertiesDirExists -eq $false){
New-Item -Path $propertiesDir -ItemType Directory | Out-Null
}

Copy-Item -Path $tempPropertiesDir\* -Destination $propertiesDir\ -Recurse -force
}

Copy-Item -Path $tempBinariesDir\$fullProjectName\$projectName.* -Destination $configurationDir\ -Recurse
Copy-Item -Path $tempBinariesDir\$fullProjectName\$projectName.* -Destination $configurationDir\ -Recurse
}
}
}
Expand Down Expand Up @@ -167,7 +180,7 @@ task PackNuGet -depends Build -description "Create the NuGet packages" {
New-Item -Path $projectLibFolder -ItemType Directory | Out-Null

Copy-Item -Path $binariesDir\$projectName\* -Destination $projectLibFolder\ -Recurse

Write-Host -ForegroundColor Green "Packaging $projectName..."
Write-Host

Expand Down
12 changes: 9 additions & 3 deletions src/Cimbalino.Toolkit (UWP)/Cimbalino.Toolkit (UWP).csproj
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@
<Compile Include="Services\LockScreenWithRequestService.cs" />
<Compile Include="Services\PersonalizationService.cs" />
<Compile Include="Services\TitleBarService.cs" />
<Content Include="Properties\Cimbalino.Toolkit__UWP_.rd.xml" />
<Content Include="Properties\Cimbalino.Toolkit.rd.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<SDKReference Include="BehaviorsXamlSDKManaged, Version=12.0">
Expand All @@ -257,15 +259,19 @@
<Private>False</Private>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PropertiesFile Include="**\*.rd.xml"/>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
</Target>-->
<Target Name="AfterBuild">
<Copy SourceFiles="@(PropertiesFile)"
DestinationFolder="$(OutputPath)"/>
</Target>
-->
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
http://go.microsoft.com/fwlink/?LinkId=613100
-->
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Library Name="Cimbalino.Toolkit__UWP_">
<Library Name="Cimbalino.Toolkit">

<!-- add directives for your library here -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,9 @@
<Compile Include="Helpers\ApiHelper.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Services\LockScreenService.cs" />
<Content Include="Properties\Cimbalino.Toolkit.Core__UWP_.rd.xml" />
<Content Include="Properties\Cimbalino.Toolkit.Core.rd.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<SDKReference Include="WindowsDesktop, Version=10.0.10240.0">
Expand All @@ -513,15 +515,19 @@
<Name>Windows Mobile Extensions for the UWP</Name>
</SDKReference>
</ItemGroup>
<ItemGroup>
<PropertiesFile Include="**\*.rd.xml" />
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
</Target>-->
<Target Name="AfterBuild">
<Copy SourceFiles="@(PropertiesFile)"
DestinationFolder="$(OutputPath)" />
</Target>
-->
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
http://go.microsoft.com/fwlink/?LinkId=613100
-->
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Library Name="Cimbalino.Toolkit.Core__UWP_">
<Library Name="Cimbalino.Toolkit.Core">

<!-- add directives for your library here -->

Expand Down

0 comments on commit 2fefdf3

Please sign in to comment.