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

Commit f17b102

Browse files
committed
feat: Additional Metapackage settings
- added IncludeSymbols=false, fixes #220 - added IncludeBuildOutput=false - moved UsingCodeGenerationRoslynToolTargets=true to build/.props
1 parent 1c57ad4 commit f17b102

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,6 @@ Remove `Class1.cs` file.
484484

485485
Modify project file:
486486
- Add `<Sdk>` element
487-
- Set `IncludeBuildOutput=false`
488487
- Add `NupkgAdditionalDependency` in ItemGroup
489488
```xml
490489
<!-- Duplicator/Duplicator.csproj -->
@@ -495,8 +494,6 @@ Modify project file:
495494
<PropertyGroup>
496495
<!-- Declare the TargetFramework(s) the same as in your Attributes package -->
497496
<TargetFramework>netstandard1.0</TargetFramework>
498-
<!-- We don't want any build output in package -->
499-
<IncludeBuildOutput>false</IncludeBuildOutput>
500497
</PropertyGroup>
501498

502499
<ItemGroup>

samples/MetapackageSample/MetapackageSample/MetapackageSample.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
<PropertyGroup>
1313
<!-- Declare the TargetFramework(s) the same as in your Attributes package -->
1414
<TargetFrameworks>netstandard1.0;netstandard2.0</TargetFrameworks>
15-
<!-- This project contains no files, so building can be skipped -->
16-
<NoBuild>true</NoBuild>
17-
<!-- Since we don't build, there'll be no build output -->
18-
<IncludeBuildOutput>false</IncludeBuildOutput>
1915
</PropertyGroup>
2016

2117
<ItemGroup>

src/CodeGeneration.Roslyn.PluginMetapackage.Sdk/Sdk/Sdk.props

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
<!-- Announce this SDK (add *AsSdk to differentiate between using this as Sdk
66
and normal PackageReference/dependency usage)-->
77
<UsingCodeGenerationRoslynPluginMetapackageSdkAsSdk>true</UsingCodeGenerationRoslynPluginMetapackageSdkAsSdk>
8-
<!-- Prevent running Tool targets in metapackage -->
9-
<UsingCodeGenerationRoslynToolTargets>false</UsingCodeGenerationRoslynToolTargets>
108
</PropertyGroup>
119

1210
<Import Project="../build/CodeGeneration.Roslyn.PluginMetapackage.Sdk.props" />

src/CodeGeneration.Roslyn.PluginMetapackage.Sdk/build/CodeGeneration.Roslyn.PluginMetapackage.Sdk.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
<PropertyGroup>
55
<!-- Announce this SDK -->
66
<UsingCodeGenerationRoslynPluginMetapackageSdk>true</UsingCodeGenerationRoslynPluginMetapackageSdk>
7+
<!-- Prevent running Tool targets in metapackage -->
8+
<UsingCodeGenerationRoslynToolTargets>false</UsingCodeGenerationRoslynToolTargets>
9+
<!-- Setup so that by default no build output and no symbols are packed -->
10+
<IncludeBuildOutput>false</IncludeBuildOutput>
11+
<IncludeSymbols>false</IncludeSymbols>
712
</PropertyGroup>
813

914
<!--

templates/content/SourceGenerator.MetapackageProjects/SourceGenerator/SourceGenerator.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
<PropertyGroup>
99
<TargetFramework>netstandard1.0</TargetFramework>
10-
<IncludeBuildOutput>false</IncludeBuildOutput>
1110
</PropertyGroup>
1211

1312
<ItemGroup>

0 commit comments

Comments
 (0)