-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from ermshiperete/feature/nuget
Create nuget package
- Loading branch information
Showing
28 changed files
with
667 additions
and
796 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 |
---|---|---|
|
@@ -18,4 +18,5 @@ | |
*.patch -whitespace | ||
*.svg -whitespace | ||
*.xml -whitespace | ||
*.yml -whitespace | ||
changelog -whitespace |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
<!-- Available types of changes: | ||
### Added | ||
### Changed | ||
### Fixed | ||
### Deprecated | ||
### Removed | ||
### Security | ||
--> | ||
|
||
## [Unreleased] | ||
|
||
### Changed | ||
|
||
- Create nuget package | ||
- Strong-name assembly |
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,21 @@ | ||
assembly-versioning-scheme: MajorMinor | ||
mode: ContinuousDeployment | ||
next-version: 3.1.0 | ||
tag-prefix: xliff- | ||
branches: | ||
master: | ||
tag: beta | ||
regex: (origin/)?(master|xliff) | ||
hotfix: | ||
tag: beta | ||
regex: (origin/)?hotfix[/-] | ||
increment: Patch | ||
prevent-increment-of-merged-branch-version: false | ||
track-merge-target: false | ||
tracks-release-branches: false | ||
is-release-branch: false | ||
pull-request: | ||
mode: ContinuousDeployment | ||
tag: PR | ||
ignore: | ||
sha: [] |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,75 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Pack"> | ||
<PropertyGroup> | ||
<RootDir Condition="'$(teamcity_version)' == '' Or '$(OS)'!='Windows_NT'">$(MSBuildProjectDirectory)\..</RootDir> | ||
<RootDir Condition="'$(teamcity_version)' != '' And '$(OS)'=='Windows_NT'">$(teamcity_build_checkoutDir)</RootDir> | ||
<Solution>L10NSharp.sln</Solution> | ||
<Configuration>Release</Configuration> | ||
<teamcity_agent_home_dir Condition="'$(teamcity_agent_home_dir)'=='' And '$(OS)'!='Windows_NT'">/var/lib/TeamCity/agent</teamcity_agent_home_dir> | ||
<Configuration Condition="'$(Configuration)'==''">Release</Configuration> | ||
<RestartBuild Condition="!Exists('$(RootDir)/packages/SIL.BuildTasks/tools/SIL.BuildTasks.dll')">true</RestartBuild> | ||
<RestartBuild Condition="Exists('$(RootDir)/packages/SIL.BuildTasks/tools/SIL.BuildTasks.dll')">false</RestartBuild> | ||
<useNUnit-x86 Condition="'$(OS)'=='Windows_NT'">true</useNUnit-x86> | ||
<useNUnit-x86 Condition="'$(OS)'!='Windows_NT'">false</useNUnit-x86> | ||
<ExtraExcludeCategories Condition="'$(OS)'!='Windows_NT'">KnownMonoIssue,</ExtraExcludeCategories> | ||
<ExtraExcludeCategories Condition="'$(teamcity_version)' != ''">SkipOnTeamCity,$(ExtraExcludeCategories)</ExtraExcludeCategories> | ||
</PropertyGroup> | ||
|
||
<UsingTask TaskName="NUnitTeamCity" | ||
AssemblyFile="$(teamcity_dotnet_nunitlauncher_msbuild_task)" | ||
Condition=" '$(teamcity_version)' != '' And '$(OS)'=='Windows_NT'"/> | ||
<UsingTask TaskName="NUnitTeamCity" | ||
AssemblyFile="$(agent_home_dir)/plugins/dotnetPlugin/bin/JetBrains.BuildServer.MSBuildLoggers.dll" | ||
Condition=" '$(teamcity_version)' != '' And '$(OS)'!='Windows_NT'"/> | ||
<UsingTask TaskName="NUnit" AssemblyFile="$(RootDir)/packages/SIL.BuildTasks/tools/SIL.BuildTasks.dll" | ||
Condition="Exists('$(RootDir)/packages/SIL.BuildTasks/tools/SIL.BuildTasks.dll')"/> | ||
|
||
<Import Project="NuGet.targets"/> | ||
|
||
<Target Name="Build" DependsOnTargets="RestorePackages"> | ||
<Target Name="Build"> | ||
<CallTarget Targets="RestoreBuildTasks" /> | ||
<CallTarget Targets="BuildInternal" Condition="!$(RestartBuild)" /> | ||
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="BuildInternal" | ||
Properties="Configuration=$(Configuration);RootDir=$(RootDir)" | ||
Condition="$(RestartBuild)" /> | ||
</Target> | ||
|
||
<Target Name="BuildInternal" DependsOnTargets="RestorePackages"> | ||
<MSBuild Projects="$(RootDir)/$(Solution)" | ||
Targets="Rebuild" | ||
Targets="Restore;Rebuild" | ||
Properties="Configuration=$(Configuration)" /> | ||
</Target> | ||
|
||
<Target Name="RestoreBuildTasks" DependsOnTargets="CheckPrerequisites"> | ||
<Message Text="RestartBuild=$(RestartBuild)" /> | ||
<Exec Command='$(NuGetCommand) install NUnit.Runners.Net4 -version 2.6.4 -solutionDirectory "$(RootDir)"' /> | ||
<Exec Command='$(NuGetCommand) install SIL.BuildTasks -excludeVersion -version 2.2.0 -solutionDirectory "$(RootDir)"' /> | ||
</Target> | ||
|
||
<Target Name="Pack" DependsOnTargets="Build"> | ||
<MSBuild Projects="$(RootDir)/src/L10NSharp/L10NSharp.csproj" | ||
Targets="Pack" | ||
Properties="Configuration=$(Configuration)" /> | ||
</Target> | ||
|
||
<Target Name="Test" DependsOnTargets="Build"> | ||
<CallTarget Targets="TestOnly"/> | ||
<CallTarget Targets="TestOnly" Condition="!$(RestartBuild)" /> | ||
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="TestOnly" | ||
Properties="Configuration=$(Configuration);RootDir=$(RootDir);Platform=$(Platform)" | ||
Condition="$(RestartBuild)" /> | ||
</Target> | ||
|
||
|
||
<Target Name="TestOnly"> | ||
<PropertyGroup> | ||
<NUnitVersion>2.6.4</NUnitVersion> | ||
<NUnitRunnerPackage>$(RootDir)/packages/NUnit.Runners.Net4.$(NUnitVersion)</NUnitRunnerPackage> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<TestAssemblies Include="$(RootDir)/output/$(Configuration)/L10NSharpTests.dll"/> | ||
<TestAssemblies Include="$(RootDir)/output/$(Configuration)/net461/L10NSharpTests.dll"/> | ||
</ItemGroup> | ||
|
||
<NUnitTeamCity | ||
Assemblies="@(TestAssemblies)" | ||
ExcludeCategory="SkipOnTeamCity" | ||
NUnitVersion="NUnit-2.6.3" /> | ||
<NUnit Assemblies="@(TestAssemblies)" | ||
ToolPath="$(NUnitRunnerPackage)/tools" | ||
TestInNewThread="false" | ||
ExcludeCategory="$(ExtraExcludeCategories)$(excludedCategories)" | ||
WorkingDirectory="$(RootDir)/output/$(Configuration)/net461" | ||
Force32Bit="$(useNUnit-x86)" | ||
Verbose="true" | ||
OutputXmlFile="$(RootDir)/output/$(Configuration)/net461/TestResults.xml"/> | ||
<Message Text="##teamcity[importData type='nunit' path='$(RootDir)/output/$(Configuration)/net461/TestResults.xml']" | ||
Condition="'$(teamcity_version)' != ''"/> | ||
</Target> | ||
|
||
</Project> |
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
Oops, something went wrong.