Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 1171cf8

Browse files
kzuadalon
authored andcommitted
Cleanup unused targets in older single VSIX project
Most of these targets were copied over to src\VisualStudio/NuGet.Packaging.VisualStudio.Shared.targets, so they aren't needed in this file anymore and just cause confusion as to which targets should be updated when changes are needed to templates, nuget packaging, etc.
1 parent 2fcbcb1 commit 1171cf8

1 file changed

Lines changed: 2 additions & 79 deletions

File tree

Lines changed: 2 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" standalone="no"?>
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<PropertyGroup>
4-
<StartAction>Program</StartAction>
5-
<StartProgram>$(MSBuildProgramFiles32)\Microsoft Visual Studio $(VisualStudioVersion)\Common7\IDE\devenv.exe</StartProgram>
6-
<StartArguments>/rootsuffix exp</StartArguments>
7-
<NoGlobalAssemblyInfo>true</NoGlobalAssemblyInfo>
8-
<XmlNs>&lt;Namespace Prefix='vs' Uri='http://schemas.microsoft.com/developer/vstemplate/2005'/&gt;</XmlNs>
9-
</PropertyGroup>
10-
11-
<ItemGroup>
12-
<!-- NOTE: this will only work if the solution was built at least once from the command line,
13-
since the project reference below would have built the package in that case. -->
14-
<Content Include="$(Out)\*.nupkg" Condition="'$(BuildingInsideVisualStudio)' == 'true' Or '$(PackOnBuild)' == 'false'">
15-
<Link>%(Filename)%(Extension)</Link>
16-
<IncludeInVSIX>true</IncludeInVSIX>
17-
<VSIXSubPath>Packages</VSIXSubPath>
18-
</Content>
19-
<!-- We can't reference the project when building from VS because that will lock the output tasks assembly -->
20-
<ProjectReference Include="..\..\Build\NuGet.Build.Packaging.Tasks\NuGet.Build.Packaging.Tasks.csproj"
21-
Condition="'$(BuildingInsideVisualStudio)' != 'true' And '$(PackOnBuild)' != 'false'">
22-
<Project>{a3d231d7-31e4-4a70-8cd1-7246c7d069f6}</Project>
23-
<Name>NuGet.Build.Packaging.Tasks</Name>
24-
<AdditionalProperties>PackOnBuild=true;PackageOutputPath=$(Out)</AdditionalProperties>
25-
<IncludeOutputGroupsInVSIXLocalOnly>PackageOutputGroup</IncludeOutputGroupsInVSIXLocalOnly>
26-
<IncludeOutputGroupsInVSIX>PackageOutputGroup</IncludeOutputGroupsInVSIX>
27-
<Private>False</Private>
28-
<VSIXSubPath>Packages</VSIXSubPath>
29-
</ProjectReference>
30-
</ItemGroup>
31-
32-
<Target Name="GetVersion" DependsOnTargets="GitVersion" Returns="$(Version)">
33-
<PropertyGroup>
34-
<Version>$(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch)</Version>
35-
</PropertyGroup>
36-
</Target>
37-
38-
<PropertyGroup>
39-
<UpdateTemplatesDependsOn>
40-
PrepareForBuild;
41-
CopyOutOfDateSmartTemplateContent;
42-
GetPackageVersion;
43-
FindTemplates;
44-
UpdateTemplatePackages
45-
</UpdateTemplatesDependsOn>
46-
</PropertyGroup>
47-
48-
<Target Name="UpdateTemplates"
49-
AfterTargets="CopyOutOfDateSmartTemplateContent"
50-
BeforeTargets="ZipSmartTemplateContent"
51-
DependsOnTargets="$(UpdateTemplatesDependsOn)" />
52-
53-
<Target Name="FindTemplates">
54-
<ItemGroup>
55-
<IntermediateTemplate Include="@(SmartTemplateContentWithTargetPath->'$(SmartTemplateIntermediateOutputPath)%(TargetPath)')"
56-
Condition="'%(Extension)' == '.vstemplate'"/>
57-
</ItemGroup>
58-
</Target>
59-
60-
<Target Name="UpdateTemplatePackages"
61-
Inputs="@(IntermediateTemplate)"
62-
Outputs="%(IntermediateTemplate.Identity)-BATCH"
63-
DependsOnTargets="FindTemplates">
64-
65-
<XmlPoke Namespaces="$(XmlNs)"
66-
XmlInputPath="%(IntermediateTemplate.FullPath)"
67-
Query="/vs:VSTemplate/vs:WizardData/vs:packages/vs:package[@id='NuGet.Build.Packaging']/@version"
68-
Value="$(PackageVersion)"/>
69-
</Target>
70-
71-
<Target Name="CopyVsixToOut" AfterTargets="CreateVsixContainer" DependsOnTargets="GetVersion"
72-
Condition="'$(Out)' != '' And '$(CreateVsixContainer)' == 'true' And Exists('$(TargetVsixContainer)')">
73-
<ItemGroup>
74-
<TargetVsixContainer Include="$(TargetVsixContainer)" />
75-
</ItemGroup>
76-
<!-- Copy the evergreen filename -->
77-
<Copy SourceFiles="@(TargetVsixContainer)" DestinationFolder="$(Out)" />
78-
<!-- And also a versioned filename -->
79-
<Copy SourceFiles="@(TargetVsixContainer)" DestinationFiles="$(Out)\%(TargetVsixContainer.Filename).$(Version)%(TargetVsixContainer.Extension)" />
80-
</Target>
81-
3+
824
<!-- Because envdte comes from a nuget package, we can't set the EmbedInteropTypes to true in the project, so we do it here -->
835
<Target Name="EmbedInteropTypes" AfterTargets="ResolveNuGetPackageAssets">
846
<ItemGroup>
@@ -90,4 +12,5 @@
9012
</Reference>
9113
</ItemGroup>
9214
</Target>
15+
9316
</Project>

0 commit comments

Comments
 (0)