forked from gitextensions/gitextensions.plugintemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GitExtensions.PluginTemplate.csproj
74 lines (68 loc) · 3.03 KB
/
GitExtensions.PluginTemplate.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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net461</TargetFramework>
<VersionPrefix>1.0.0</VersionPrefix>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<PackageReference Include="GitExtensions.Extensibility" Version="0.1.1.40" />
</ItemGroup>
<!--SourceLink support: https://github.com/dotnet/sourcelink -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
<!--<PackageReference Include="Microsoft.SourceLink.AzureRepos.Git" Version="1.0.0" PrivateAssets="All"/>-->
<!--<PackageReference Include="Microsoft.SourceLink.AzureDevOpsServer.Git" Version="1.0.0" PrivateAssets="All"/>-->
<!--<PackageReference Include="Microsoft.SourceLink.GitLab" Version="1.0.0" PrivateAssets="All"/>-->
<!--<PackageReference Include="Microsoft.SourceLink.Bitbucket.Git" Version="1.0.0" PrivateAssets="All"/>-->
</ItemGroup>
<!-- Reference to GitExtensions dlls. -->
<ItemGroup>
<Reference Include="GitUIPluginInterfaces">
<HintPath>$(GitExtensionsPath)\GitUIPluginInterfaces.dll</HintPath>
</Reference>
<Reference Include="ResourceManager">
<HintPath>$(GitExtensionsPath)\ResourceManager.dll</HintPath>
</Reference>
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<!-- Pack as .nupkg with dependency on GitExtensions.Extensibility -->
<PropertyGroup>
<NuspecFile>$(MSBuildThisFileDirectory)$(MSBuildProjectName).nuspec</NuspecFile>
<Authors>YOUR NAME HERE</Authors>
<Company>YOUR ORGANIZATION HERE</Company>
<Description>A template for Git Extensions plugins distributed as NuGet packages.</Description>
<PackageProjectUrl>https://github.com/gitextensions/gitextensions.plugintemplate</PackageProjectUrl>
<PackageTags>GitExtensions</PackageTags>
</PropertyGroup>
<Target Name="SetPackageProperties" BeforeTargets="GenerateNuspec">
<PropertyGroup>
<NuspecProperties>
id=$(PackageId);
version=$(PackageVersion);
configuration=$(Configuration);
tags=$(PackageTags.Replace(';',' '));
projectUrl=$(PackageProjectUrl);
iconUrl=$(PackageIconUrl);
repositoryUrl=$(RepositoryUrl);
repositoryType=$(RepositoryType);
repositoryCommit=$(RepositoryCommit);
author=$(Authors);
copyright=$(Copyright);
description=$(Description);
targetDir=$(TargetDir);
</NuspecProperties>
</PropertyGroup>
</Target>
</Project>