Skip to content

Commit

Permalink
Create nuget package on CI build (#3)
Browse files Browse the repository at this point in the history
* Create nuget package on CI build
* Use same version numbering as other OpenRiaServices projects (GitVersion)
* Add more files to "solution items"
  • Loading branch information
Daniel-Svensson authored May 22, 2019
1 parent 8801951 commit bec0062
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions FluentMetadata.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
azure-pipelines.yml = azure-pipelines.yml
Directory.Build.props = Directory.Build.props
OpenRiaServices.FluentMetadata.snk = OpenRiaServices.FluentMetadata.snk
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Sample", "Sample", "{1D35501C-BA2E-492F-8279-B2F0BF5B35A0}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFrameworks>net45</TargetFrameworks>
<Description>library that provides a fluent configuration interface for configuring domain services.</Description>
<PackageId>OpenRiaServices.FluentMetadata</PackageId>
<GeneratePackageOnBuild Condition="'$(BUILD_BUILDID)' != ''" >true</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
Expand Down
6 changes: 6 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
assembly-versioning-scheme: Major
mode: ContinuousDeployment
branches:
master: {}
ignore:
sha: []
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ steps:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
# msbuildArgs: '/t:Pack /p:PackageVersion=$(Build.BuildNumber)'
msbuildArgs: '/p:PackageVersion=$(Build.BuildNumber)'

- task: VSTest@2
inputs:
Expand Down

0 comments on commit bec0062

Please sign in to comment.