|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 |
|
| 3 | + <!-- Pack as .nupkg with dependency on GitExtensions.Extensibility --> |
3 | 4 | <PropertyGroup> |
4 | | - <TargetFramework>net461</TargetFramework> |
5 | | - <VersionPrefix>1.0.0</VersionPrefix> |
6 | | - <PublishRepositoryUrl>true</PublishRepositoryUrl> |
| 5 | + <TargetFramework>net10.0-windows</TargetFramework> |
| 6 | + <UseWindowsForms>true</UseWindowsForms> |
| 7 | + <NuspecFile>$(MSBuildThisFileDirectory)$(MSBuildProjectName).nuspec</NuspecFile> |
| 8 | + <Authors>YOUR NAME HERE</Authors> |
| 9 | + <Company>YOUR ORGANIZATION HERE</Company> |
| 10 | + <Description>A template for Git Extensions plugins distributed as NuGet packages.</Description> |
| 11 | + <PackageProjectUrl>https://github.com/gitextensions/gitextensions.plugintemplate</PackageProjectUrl> |
| 12 | + <PackageTags>GitExtensions</PackageTags> |
| 13 | + <GeneratePackageOnBuild>true</GeneratePackageOnBuild> |
| 14 | + <!-- Assembly binding redirect for WindowsBase compatibility --> |
| 15 | + <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> |
| 16 | + <!-- Suppress assembly binding resolution warnings for version mismatches --> |
| 17 | + <WarningLevel>3</WarningLevel> |
| 18 | + <NoWarn>$(NoWarn);MSB3277</NoWarn> |
7 | 19 | </PropertyGroup> |
| 20 | + |
| 21 | + <!-- References to Git Extensions' DLLs --> |
| 22 | + <!-- PackageReference triggers the MSBuild targets that download GE before build --> |
| 23 | + <ItemGroup> |
| 24 | + <PackageReference Include="GitExtensions.Extensibility" /> |
| 25 | + <Reference Include="GitExtensions.Extensibility"> |
| 26 | + <HintPath>$(GitExtensionsPath)\GitExtensions.Extensibility.dll</HintPath> |
| 27 | + </Reference> |
| 28 | + <Reference Include="GitUIPluginInterfaces"> |
| 29 | + <HintPath>$(GitExtensionsPath)\GitUIPluginInterfaces.dll</HintPath> |
| 30 | + </Reference> |
| 31 | + <Reference Include="ResourceManager"> |
| 32 | + <HintPath>$(GitExtensionsPath)\ResourceManager.dll</HintPath> |
| 33 | + </Reference> |
| 34 | + <PackageReference Include="System.ComponentModel.Composition" /> |
| 35 | + <Reference Include="GitCommands"> |
| 36 | + <HintPath>$(GitExtensionsPath)\GitCommands.dll</HintPath> |
| 37 | + </Reference> |
| 38 | + </ItemGroup> |
| 39 | + |
8 | 40 | <ItemGroup> |
9 | 41 | <Compile Update="Properties\Resources.Designer.cs"> |
10 | 42 | <DesignTime>True</DesignTime> |
|
17 | 49 | </EmbeddedResource> |
18 | 50 | </ItemGroup> |
19 | 51 |
|
20 | | - <ItemGroup> |
21 | | - <PackageReference Include="GitExtensions.Extensibility" Version="0.1.1.40" /> |
22 | | - </ItemGroup> |
23 | | - |
24 | | - <!--SourceLink support: https://github.com/dotnet/sourcelink --> |
25 | | - <ItemGroup> |
26 | | - <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/> |
27 | | - <!--<PackageReference Include="Microsoft.SourceLink.AzureRepos.Git" Version="1.0.0" PrivateAssets="All"/>--> |
28 | | - <!--<PackageReference Include="Microsoft.SourceLink.AzureDevOpsServer.Git" Version="1.0.0" PrivateAssets="All"/>--> |
29 | | - <!--<PackageReference Include="Microsoft.SourceLink.GitLab" Version="1.0.0" PrivateAssets="All"/>--> |
30 | | - <!--<PackageReference Include="Microsoft.SourceLink.Bitbucket.Git" Version="1.0.0" PrivateAssets="All"/>--> |
31 | | - </ItemGroup> |
32 | | - |
33 | | - <!-- Reference to GitExtensions dlls. --> |
34 | | - <ItemGroup> |
35 | | - <Reference Include="GitUIPluginInterfaces"> |
36 | | - <HintPath>$(GitExtensionsPath)\GitUIPluginInterfaces.dll</HintPath> |
37 | | - </Reference> |
38 | | - <Reference Include="ResourceManager"> |
39 | | - <HintPath>$(GitExtensionsPath)\ResourceManager.dll</HintPath> |
40 | | - </Reference> |
41 | | - <Reference Include="System.ComponentModel.Composition" /> |
42 | | - <Reference Include="System.Windows.Forms" /> |
43 | | - </ItemGroup> |
44 | | - |
45 | | - <!-- Pack as .nupkg with dependency on GitExtensions.Extensibility --> |
46 | | - <PropertyGroup> |
47 | | - <NuspecFile>$(MSBuildThisFileDirectory)$(MSBuildProjectName).nuspec</NuspecFile> |
48 | | - <Authors>YOUR NAME HERE</Authors> |
49 | | - <Company>YOUR ORGANIZATION HERE</Company> |
50 | | - <Description>A template for Git Extensions plugins distributed as NuGet packages.</Description> |
51 | | - <PackageProjectUrl>https://github.com/gitextensions/gitextensions.plugintemplate</PackageProjectUrl> |
52 | | - <PackageTags>GitExtensions</PackageTags> |
53 | | - </PropertyGroup> |
54 | 52 | <Target Name="SetPackageProperties" BeforeTargets="GenerateNuspec"> |
55 | 53 | <PropertyGroup> |
56 | 54 | <NuspecProperties> |
|
0 commit comments