Skip to content

Commit 6168a7b

Browse files
committed
Don't load package references in VSIX. Don't copy template XAML and target files.
1 parent eb5403e commit 6168a7b

File tree

1 file changed

+4
-32
lines changed

1 file changed

+4
-32
lines changed

src/Stratis.VS.StratisEVM/Stratis.VS.StratisEVM.csproj

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer>
2323
<IncludeDebugSymbolsInLocalVSIXDeployment>false</IncludeDebugSymbolsInLocalVSIXDeployment>
2424
<!--Avoid including unneeded references from PackageReference into vsix. If this behavior is desired, an alternative option is to use SuppressFromVsix items to specify which items to be excluded.-->
25-
<IncludePackageReferencesInVSIXContainer>true</IncludePackageReferencesInVSIXContainer>
25+
<IncludePackageReferencesInVSIXContainer>false</IncludePackageReferencesInVSIXContainer>
2626
<CopyBuildOutputToOutputDirectory>true</CopyBuildOutputToOutputDirectory>
2727
<CopyOutputSymbolsToOutputDirectory>true</CopyOutputSymbolsToOutputDirectory>
2828
<StartAction>Program</StartAction>
@@ -165,45 +165,17 @@
165165
These are the parts of the custom project system which will be deployed as part of the
166166
final implementation, and provide the basic processing for handling rules in CPS.
167167
-->
168-
<ItemGroup>
169-
<None Include="BuildSystem\DeployedBuildSystem\ProjectType1.props" />
170-
<None Include="BuildSystem\DeployedBuildSystem\ProjectType1.targets" />
171-
</ItemGroup>
168+
172169
<!--
173170
The XAML files provide buth compile-time implementations for CPS rules as well as
174171
runtime information for property pages. They will also be deployed as part of the
175172
final package.
176173
-->
177-
<ItemGroup>
178-
<None Include="BuildSystem\Rules\ProjectItemsSchema.xaml" />
179-
<XamlPropertyRule Include="BuildSystem\Rules\general.xaml" />
180-
<XamlPropertyRule Include="BuildSystem\Rules\general_file.xaml">
181-
<RuleInjection>None</RuleInjection>
182-
</XamlPropertyRule>
183-
<XamlPropertyRule Include="BuildSystem\Rules\folder.xaml">
184-
<RuleInjection>None</RuleInjection>
185-
</XamlPropertyRule>
186-
<XamlPropertyRule Include="BuildSystem\Rules\none.xaml">
187-
<RuleInjection>None</RuleInjection>
188-
</XamlPropertyRule>
189-
<XamlPropertyRule Include="BuildSystem\Rules\scc.xaml" />
190-
<XamlPropertyRule Include="BuildSystem\Rules\debugger_general.xaml" />
191-
<XamlPropertyRule Include="BuildSystem\Rules\general.browseobject.xaml" />
192-
<XamlPropertyRule Include="BuildSystem\Rules\script.xaml" />
193-
<None Include="BuildSystem\Rules\script.browseobject.xaml" />
194-
<XamlPropertyRule Include="BuildSystem\Rules\ScriptDebugger.xaml" />
195-
</ItemGroup>
174+
196175
<!-- TODO: This copies the build authoring to a well-known location so that on the machine this project builds on,
197176
the projects created by the 3rd party consumer can open and build. But the real 3rd party consumer will not
198177
have run this step so they won't be able to open their projects.
199178
To ship, the project type author must create an MSI that places these files in a well-known location on the
200179
customer machine and update the project template to point at that location.-->
201-
<Target Name="AfterBuild">
202-
<ItemGroup>
203-
<BuildSystemToCopy Include="BuildSystem\DeployedBuildSystem\**\*" />
204-
<RulesToCopy Include="BuildSystem\Rules\**\*" />
205-
</ItemGroup>
206-
<Copy SourceFiles="@(BuildSystemToCopy)" DestinationFiles="@(BuildSystemToCopy->'$(LocalAppData)\CustomProjectSystems\ProjectType1\%(RecursiveDir)%(FileName)%(Extension)')" SkipUnchangedFiles="true" />
207-
<Copy SourceFiles="@(RulesToCopy)" DestinationFiles="@(RulesToCopy->'$(LocalAppData)\CustomProjectSystems\ProjectType1\Rules\%(RecursiveDir)%(FileName)%(Extension)')" SkipUnchangedFiles="true" />
208-
</Target>
180+
209181
</Project>

0 commit comments

Comments
 (0)