-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackaging.props
More file actions
36 lines (31 loc) · 1.67 KB
/
Packaging.props
File metadata and controls
36 lines (31 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<GeneratePackageOnBuild Condition="'$(GeneratePackageOnBuild)' == ''">true</GeneratePackageOnBuild>
<PackageProjectUrl Condition="'$(PackageProjectUrl)' == ''">https://github.com/tgoessler/TCSystemCS</PackageProjectUrl>
<RepositoryUrl Condition="'$(RepositoryUrl)' == ''">https://github.com/tgoessler/TCSystemCS</RepositoryUrl>
<RepositoryType Condition="'$(RepositoryType)' == ''">Git</RepositoryType>
<PackageLicenseFile Condition="'$(PackageLicenseFile)' == ''">LICENSE</PackageLicenseFile>
<PackageReadmeFile Condition="'$(PackageReadmeFile)' == ''">README.md</PackageReadmeFile>
<NuGetPushSource Condition="'$(NuGetPushSource)' == ''">https://api.nuget.org/v3/index.json</NuGetPushSource>
<NuGetPushFolder Condition="'$(NuGetPushFolder)' == ''">D:\Source\NuGetPackages\</NuGetPushFolder>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="$(MSBuildThisFileDirectory)\README.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
<Target Name="NugetPush" Condition="'$(Configuration)'=='Release'"
DependsOnTargets="Rebuild">
<Exec Command="dotnet nuget push $(OutputPath)$(AssemblyName).$(Version).nupkg --source $(NuGetPushSource) --skip-duplicate" />
</Target>
<Target Name="NugetCopy" DependsOnTargets="Rebuild">
<Exec Command="dotnet nuget push $(OutputPath)$(AssemblyName).$(Version).nupkg --source $(NuGetPushFolder)" />
</Target>
</Project>