Skip to content

Commit

Permalink
Appveyor support
Browse files Browse the repository at this point in the history
  • Loading branch information
jogibear9988 committed Jul 4, 2016
1 parent 519edd0 commit c32f1c3
Show file tree
Hide file tree
Showing 13 changed files with 122 additions and 49 deletions.
12 changes: 6 additions & 6 deletions SVGImage/Example/Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,6 @@
</None>
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SVGImage\SVGImage.csproj">
<Project>{5569522d-5c29-451e-8730-f119f0408bca}</Project>
<Name>SVGImage</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Resource Include="Images\aa.svg" />
<Resource Include="Images\brush.svg" />
Expand Down Expand Up @@ -163,6 +157,12 @@
<ItemGroup>
<Resource Include="Images\Soccer_Simple.svg" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SVGImage\DotNetProjects.SVGImage.csproj">
<Project>{5569522d-5c29-451e-8730-f119f0408bca}</Project>
<Name>DotNetProjects.SVGImage</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.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.
Expand Down
5 changes: 3 additions & 2 deletions SVGImage/Example/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<Window x:Class="Example.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:svg="clr-namespace:SVGImage.SVG;assembly=SVGImage"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:svg1="clr-namespace:SVGImage.SVG;assembly=DotNetProjects.SVGImage"
Title="MainWindow" Height="412" Width="808" Background="{DynamicResource {x:Static SystemColors.ActiveCaptionBrushKey}}" Foreground="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}">
<Grid Background="Wheat">
<svg:SVGImage Source="/Example;component/Images/Soccer_ball_animated.svg" Margin="457,53,82,147" RenderTransformOrigin="0.5,0.5" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />
<svg1:SVGImage Source="/Example;component/Images/Soccer_ball_animated.svg" Margin="457,53,82,147" RenderTransformOrigin="0.5,0.5" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />

</Grid>
</Window>
16 changes: 7 additions & 9 deletions SVGImage/SVGImage.Design/SVGImage.Design.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,11 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Windows.Design.Extensibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\Microsoft.Windows.Design.Extensibility.dll</HintPath>
<Reference Include="Microsoft.Windows.Design.Extensibility">
<HintPath>libs\Microsoft.Windows.Design.Extensibility.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Windows.Design.Interaction, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\Microsoft.Windows.Design.Interaction.dll</HintPath>
<Reference Include="Microsoft.Windows.Design.Interaction">
<HintPath>libs\Microsoft.Windows.Design.Interaction.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
Expand Down Expand Up @@ -123,9 +121,9 @@
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SVGImage\SVGImage.csproj">
<Project>{16D74531-7F85-4384-BF5A-3C0A9A5D4F3E}</Project>
<Name>SVGImage</Name>
<ProjectReference Include="..\SVGImage\DotNetProjects.SVGImage.csproj">
<Project>{5569522D-5C29-451E-8730-F119F0408BCA}</Project>
<Name>DotNetProjects.SVGImage</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
Binary file not shown.
Binary file not shown.
6 changes: 4 additions & 2 deletions SVGImage/SVGImage.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SVGImage", "SVGImage\SVGImage.csproj", "{5569522D-5C29-451E-8730-F119F0408BCA}"
# Visual Studio 15
VisualStudioVersion = 15.0.25302.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetProjects.SVGImage", "SVGImage\DotNetProjects.SVGImage.csproj", "{5569522D-5C29-451E-8730-F119F0408BCA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example", "Example\Example.csproj", "{6BDADE27-F4F1-4E84-8BB0-4D5989B4380B}"
EndProject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<ProjectGuid>{5569522D-5C29-451E-8730-F119F0408BCA}</ProjectGuid>
<OutputType>library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SVGImage</RootNamespace>
<AssemblyName>SVGImage</AssemblyName>
<RootNamespace>DotNetProjects.SVGImage</RootNamespace>
<AssemblyName>DotNetProjects.SVGImage</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
Expand Down
31 changes: 16 additions & 15 deletions SVGImage/SVGImage/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 9 additions & 13 deletions SVGImage/SVGImage/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: 2.0.{build}

branches:
only:
- master

assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"

configuration: Debug

before_build:
- nuget restore

build:
project: SVGImage\SVGImage.sln

after_build:
- ps: .\nuget\pack.ps1

test: off

artifacts:
- path: SVGImage\SVGImage\bin\Debug\DotNetProjects.SVGImage.dll
name: DotNetProjects.SVGImage.dll
- path: SVGImage\SVGImage\bin\Debug\DotNetProjects.SVGImage.pdb
name: DotNetProjects.SVGImage.pdb
- path: '**\DotNetProjects.SVGImage*.nupkg'

#uncomment to publish to NuGet
deploy:
provider: NuGet
api_key:
secure: OrhpK2cLXXcoWW+hU6xAv3eeKIbATEFbenteoFsi9EfM1yyDof6ZuNKAsA3Vy6vb
artifact: /.*\.nupkg/



18 changes: 18 additions & 0 deletions nuget/Package.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>DotNetProjects.SVGImage</id>
<version>$version$</version>
<authors>DotNetProjects</authors>
<owners>DotNetProjects</owners>
<licenseUrl>http://www.codeproject.com/info/cpol10.aspx</licenseUrl>
<projectUrl>https://github.com/dotnetprojects/SVGImage</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Framework Assembly for DotNetProjects.SVGImage</description>
<copyright>Copyright 2015</copyright>
</metadata>
<files>
<file src="..\SVGImage\SVGImage\bin\Debug\DotNetProjects.SVGImage.dll" target="lib\net40" />
<file src="..\SVGImage\SVGImage\bin\Debug\DotNetProjects.SVGImage.pdb" target="lib\net40" />
</files>
</package>
Binary file added nuget/nuget.exe
Binary file not shown.
15 changes: 15 additions & 0 deletions nuget/pack.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$root = (split-path -parent $MyInvocation.MyCommand.Definition) + '\..'

Write-Host "root: $root"

$version = [System.Reflection.Assembly]::LoadFile("$root\SVGImage\SVGImage\bin\Debug\DotNetProjects.SVGImage.dll").GetName().Version
$versionStr = "{0}.{1}.{2}" -f ($version.Major, $version.Minor, $version.Build)

Write-Host "Setting .nuspec version tag to $versionStr"

$content = (Get-Content $root\NuGet\Package.nuspec)
$content = $content -replace '\$version\$',$versionStr

$content | Out-File $root\nuget\Package.compiled.nuspec

& $root\NuGet\NuGet.exe pack $root\nuget\Package.compiled.nuspec

0 comments on commit c32f1c3

Please sign in to comment.