Skip to content

Commit

Permalink
Update metapackage to use recommended configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlock committed Apr 27, 2020
1 parent b05ff7b commit 6eb5d9f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 27 deletions.
27 changes: 22 additions & 5 deletions src/StronglyTypedId/StronglyTypedId.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">

<!-- Add the following element above any others: -->
<Sdk Name="CodeGeneration.Roslyn.PluginMetapackage.Sdk" Version="0.7.63" />

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<NuspecFile>StronglyTypedId.nuspec</NuspecFile>
<NuspecProperties>releaseNotes=$(PackageReleaseNotes);version=$(PackageVersion);authors=$(Authors);licenseUrl=$(PackageLicenseUrl);projectUrl=$(PackageProjectUrl);iconUrl=$(PackageIconUrl);copyright=$(Copyright);tags=$(PackageTags);versionOfCodegenRoslyn=$(CodeGenerationRoslynPackagesVersion);requireLicenseAcceptance=false</NuspecProperties>
<!-- Declare the TargetFramework(s) the same as in your Attributes package -->
<TargetFrameworks>netstandard1.0;netstandard2.0</TargetFrameworks>
</PropertyGroup>

</Project>

<ItemGroup>
<!-- Reference your Attributes project normally -->
<ProjectReference Include="../StronglyTypedId.Attributes/StronglyTypedId.Attributes.csproj" />
<!--
Reference your generators package by adding an item to NupkgAdditionalDependency
with IncludeAssets="all" to flow "build" assets.
Version used will be the PackageVersion Pack resolves,
but you can specify Version metadata to override it.
This is necessary to do like that, because it ensures the dependency is setup
correctly (e.g. simple transient dependency), and skips validation of TFM (Plugin is a tool,
it's TFM has no meaning for the consumer).
-->
<NupkgAdditionalDependency
Include="StronglyTypedId.Generator"
IncludeAssets="all" />
</ItemGroup>
</Project>
22 changes: 0 additions & 22 deletions src/StronglyTypedId/StronglyTypedId.nuspec

This file was deleted.

0 comments on commit 6eb5d9f

Please sign in to comment.