Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,23 @@
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>


<ItemGroup>
<PackageReference Include="GitExtensions.Extensibility" Version="0.1.1" />
</ItemGroup>

<!-- Reference to GitExtensions dlls. -->
<ItemGroup>
<Reference Include="GitUIPluginInterfaces">
<HintPath>..\..\references\GitExtensions\GitUIPluginInterfaces.dll</HintPath>
<HintPath>$(GitExtensionsPath)\GitUIPluginInterfaces.dll</HintPath>
</Reference>
<Reference Include="ResourceManager">
<HintPath>..\..\references\GitExtensions\ResourceManager.dll</HintPath>
<HintPath>$(GitExtensionsPath)\ResourceManager.dll</HintPath>
</Reference>
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.Windows.Forms" />
</ItemGroup>

<!-- Before building project ensure we have debug GitExtensions instance (for references and debugging). -->
<PropertyGroup>
<GitExtensionsReferenceSource>github</GitExtensionsReferenceSource>
<GitExtensionsReferenceVersion>v3.1</GitExtensionsReferenceVersion>
</PropertyGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="powershell.exe -ExecutionPolicy Unrestricted ..\..\tools\Download-GitExtensions.ps1 -Version $(GitExtensionsReferenceVersion)" />
</Target>

<!-- After build, copy plugin to debug GitExtensions instance (for debugging). -->
<PropertyGroup>
<GitExtensionsDebugPluginsPath>..\..\references\GitExtensions\Plugins\</GitExtensionsDebugPluginsPath>
</PropertyGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(GitExtensionsDebugPluginsPath)" />
</Target>

<!-- Pack as .nupkg with dependency on GitExtensions.Extensibility -->
<PropertyGroup>
<NuspecFile>$(MSBuildThisFileDirectory)$(MSBuildProjectName).nuspec</NuspecFile>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project>
<PropertyGroup>
<GitExtensionsDownloadPath>..\..\..\gitextensions.shared</GitExtensionsDownloadPath> <!-- path is relative to $(ProjectDir) -->
<GitExtensionsReferenceVersion>latest</GitExtensionsReferenceVersion> <!-- 'latest' or 'v3.1' (= tag from GitHub releases) or 'v3.1.0.5877' (= build number from AppVeyor)-->
<GitExtensionsReferenceSource>GitHub</GitExtensionsReferenceSource> <!-- 'GitHub' or 'AppYevor' -->
<GitExtensionsPath></GitExtensionsPath> <!-- for local builds (no download) -->
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<projectUrl>$projectUrl$</projectUrl>
<tags>$tags$</tags>
<dependencies>
<dependency id="GitExtensions.Extensibility" version="[3.1.0, 3.2.0)" />
<dependency id="GitExtensions.Extensibility" version="[0.1.0, 1.0.0)" />
</dependencies>
</metadata>
<files>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"profiles": {
"GitExtensions.PluginTemplate": {
"commandName": "Executable",
"executablePath": "$(SolutionDir)\\references\\GitExtensions\\GitExtensions.exe"
"executablePath": "$(GitExtensionsExecutablePath)"
}
}
}
115 changes: 0 additions & 115 deletions tools/Download-GitExtensions.ps1

This file was deleted.