Skip to content

Commit

Permalink
Merge pull request PHOENIXCONTACT#68 from PHOENIXCONTACT/feature/snupkg
Browse files Browse the repository at this point in the history
Use SourceLink to patch pdbs and provide snupkg
  • Loading branch information
Toxantron authored Nov 3, 2020
2 parents 130eb91 + f3c4ba5 commit 4cd636c
Show file tree
Hide file tree
Showing 23 changed files with 18 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .build/BuildToolkit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ function Invoke-Publish {
Invoke-ExitCodeCheck 1;
}

$packages = Get-ChildItem $NugetPackageArtifacts -Recurse -Include '*.nupkg'
$packages = Get-ChildItem $NugetPackageArtifacts -Recurse -Include *.nupkg, *.snupkg

foreach ($package in $packages) {
& $global:NugetCli push $package $env:MORYX_NUGET_APIKEY -Source $env:MORYX_PACKAGE_TARGET -Verbosity $env:MORYX_NUGET_VERBOSITY
Expand Down
2 changes: 0 additions & 2 deletions .build/Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

<PackageIcon>moryx-logo.png</PackageIcon>
<PackageProjectUrl>https://moryx-industry.net/</PackageProjectUrl>

<IncludeSymbols>true</IncludeSymbols>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
push:
branches:
- dev
tags:
- "v*-beta.*"
- "v*-rc.*"
pull_request:
branches:
- dev
Expand Down
2 changes: 1 addition & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if ($GenerateDocs) {
}

if ($Pack) {
Invoke-PackAll -Symbols
Invoke-PackAll
}

if ($Publish) {
Expand Down
12 changes: 12 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>

<Import Project=".build\Common.props" Condition="'$(CreatePackage)' == 'true'" />

<!-- Properties for all projects if CreatePackage=true -->
<PropertyGroup Condition="'$(CreatePackage)' == 'true'">
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<!-- Package refereces for all projects if CreatePackage=true -->
<ItemGroup Condition="'$(CreatePackage)' == 'true'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

<!-- Package versions for package references across all projects -->
<ItemGroup>
<!--3rd party dependencies-->
Expand Down
4 changes: 4 additions & 0 deletions Directory.build.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/PHOENIXCONTACT/MORYX-Platform</RepositoryUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>

<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>Library for serial port communication.</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Moryx.Container/Moryx.Container.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>Handling of container structure.</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Moryx.Model.InMemory/Moryx.Model.InMemory.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>InMemory extension to Moryx.Model.</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Moryx.Model.PostgreSQL/Moryx.Model.PostgreSQL.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net45;net461</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>EntityFramework DataModel based on Npgsql.</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Moryx.Model/Moryx.Model.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>Extended model functionality.</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Moryx.Runtime.DbUpdate/Moryx.Runtime.DbUpdate.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>Runtime RunMode for executing database migrations.</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Moryx.Runtime.Kernel/Moryx.Runtime.Kernel.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>Main kernel abstraction for the runtime environment</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>Core module to maintain the application. It provides config and logging support by default.</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Moryx.Runtime.SmokeTest/Moryx.Runtime.SmokeTest.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>Runtime RunMode for executing smoke tests.</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Moryx.Runtime.Wcf/Moryx.Runtime.Wcf.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>Extensions for the Moryx.Runtime for hosting wcf services.</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Moryx.Runtime.WinService/Moryx.Runtime.WinService.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>Provides runtime mode for running as Windows Service.</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Moryx.Runtime/Moryx.Runtime.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>Contains core interfaces for the runtime environment.</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>

<Description>Library with helper classes for SystemTests.</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
4 changes: 0 additions & 4 deletions src/Moryx.TestTools.UnitTest/Moryx.TestTools.UnitTest.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>

<Description>Library with helper classes for UnitTests.</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Moryx.TestTools.UnitTest/app.config

This file was deleted.

3 changes: 0 additions & 3 deletions src/Moryx.Tools.Wcf/Moryx.Tools.Wcf.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>net45;net461</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>Wcf integation in Platform.</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down
4 changes: 0 additions & 4 deletions src/Moryx/Moryx.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\.build\Common.props"></Import>

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net45;net461</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>

<Description>Root namespace of the MORYX ecosystem</Description>
<CreatePackage>true</CreatePackage>
</PropertyGroup>
Expand Down

0 comments on commit 4cd636c

Please sign in to comment.