-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNuGetPush.csproj
81 lines (80 loc) · 3.43 KB
/
NuGetPush.csproj
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!--
* NuGetPush.nuproj
*
* Created: 2022-11-27-04:36:43
* Modified: 2022-11-27-04:36:44
*
* Author: David G. Moore, Jr. <[email protected]>
*
* Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->
<Project Sdk="Dgmjr.NET.Sdk">
<Import Project="./Sdk/Sdk.props" />
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0</TargetFrameworks>
<Description>This is a simple MSBuild task that allows you to push a NuGet package to a NuGet server.</Description>
<MinVerTagPrefix>v</MinVerTagPrefix>
<GitHubOrg>dgmjr-io</GitHubOrg>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IsNuGetized>true</IsNuGetized>
<ProjectGuid>2498EED9-9158-41BD-9D4A-246A70A1D9E2</ProjectGuid>
<EmitNuspec>true</EmitNuspec>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>lib/</OutputPath>
<PackageOutputPath>nupkg/</PackageOutputPath>
<PushLocalIsEnabled>true</PushLocalIsEnabled>
<PushFaGetIsEnabled>true</PushFaGetIsEnabled>
</PropertyGroup>
<ItemGroup>
<PackageFile Include="./Sdk/*" PackagePath="Sdk/%(Filename)%(Extension)" />
<PackageFile Include="./Targets/**/*" PackagePath="Targets/%(Filename)%(Extension)" />
<PackageFile Include="./Scripts/**/*" PackagePath="Scripts/%(RecursiveDir)%(Filename)%(Extension)" />
<PackageFile Include="$(OutputPath)/*.*" PackagePath="lib/%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<PackageTag Include="Azure-Artifacts" />
<PackageTag Include="Azure" />
<PackageTag Include="GitHub-Packages" />
<PackageTag Include="GitHub" />
<PackageTag Include="NuGet-Push" />
<PackageTag Include="NuGet" />
<PackageTag Include="Packaging" />
</ItemGroup>
<ItemGroup>
<Using Include="Microsoft.Build.Framework" />
<Using Include="Microsoft.Build.Utilities.Task" Alias="MSBTask" />
<Using Include="Microsoft.Build.Utilities" />
<Using Include="NuGet.Commands" />
<Using Include="NuGet.Common" />
<Using Include="NuGet.Configuration.Settings" Alias="NuGetSettings" />
<Using Include="NuGet.Configuration" />
<Using Include="NuGet.Protocol" />
<Using Include="System.IO" />
<Using Include="System.Resources" />
<Using Include="System.Threading.Tasks.Task" Alias="TTask" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MSBuild.Usings" IncludeAssets="Build;BuildTransitive;BuildMultitargeting;Runtime;Compile" ExcludeAssets="ContentFiles;Native;Analyzers" PrivateAssets="None" />
<PackageReference Include="NuGet.Protocol" />
<PackageReference Include="NuGet.Commands" />
</ItemGroup>
<ItemGroup>
<Compile Remove="./TestPush/**/*.cs" />
</ItemGroup>
<!-- <ItemGroup>
<PackageReference Include="Microsoft.Build.Framework" VersionOverride="4.0.0" />
</ItemGroup> -->
<Target Name="BuildTypeScript" AfterTargets="Build">
<Exec Command="tsc" WorkingDirectory="./Scripts" />
</Target>
<Target Name="CleanJSOutput" AfterTargets="Clean">
<Delete Files="$(MSBuildThisFileDirectory)Scripts/js/*" />
</Target>
<!-- <Target Name="TestNuGetPush" AfterTargets="AfterBuild">
<MSBuild Projects="./TestTasks.csproj" />
</Target> -->
<Import Project="./Sdk/Sdk.targets" />
</Project>