This repository was archived by the owner on Dec 12, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +5
-10
lines changed
samples/MetapackageSample/MetapackageSample
src/CodeGeneration.Roslyn.PluginMetapackage.Sdk
templates/content/SourceGenerator.MetapackageProjects/SourceGenerator Expand file tree Collapse file tree 5 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -484,7 +484,6 @@ Remove `Class1.cs` file.
484484
485485Modify 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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" />
Original file line number Diff line number Diff line change 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 <!--
Original file line number Diff line number Diff line change 77
88 <PropertyGroup >
99 <TargetFramework >netstandard1.0</TargetFramework >
10- <IncludeBuildOutput >false</IncludeBuildOutput >
1110 </PropertyGroup >
1211
1312 <ItemGroup >
You can’t perform that action at this time.
0 commit comments