forked from dotnetprojects/SVGImage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
519edd0
commit c32f1c3
Showing
13 changed files
with
122 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+120 KB
SVGImage/SVGImage.Design/libs/Microsoft.Windows.Design.Extensibility.dll
Binary file not shown.
Binary file added
BIN
+408 KB
SVGImage/SVGImage.Design/libs/Microsoft.Windows.Design.Interaction.dll
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |