Skip to content

Commit

Permalink
Update project file w/ additional nuget meta
Browse files Browse the repository at this point in the history
  • Loading branch information
prosser committed Jan 24, 2024
1 parent 739c3b3 commit 76b97a3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ Utility types can be composed to create new utility types, e.g. `Required<Union<
## Usage

1. Add the `UtilityTypeGenerator` package to your project.
1. Add the `UtilityTypeGenerator` package to your project
1. Add the `[UtilityType(arg)]` attribute to a `partial` type.
2. ???
3. Profit!

### A note on error handling

Expand Down
21 changes: 14 additions & 7 deletions src/UtilityTypeGenerator/UtilityTypeGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,25 @@
<BuildOutputTargetFolder>analyzers</BuildOutputTargetFolder>
<PackageId>UtilityTypeGenerator</PackageId>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIconUrl>icon.png</PackageIconUrl>
<PackageVersion>0.0.1</PackageVersion>
<PackageIcon>icon.png</PackageIcon>
<PackageIconPath>$(MSBuildThisFileDirectory)../../icon.png</PackageIconPath>
<Version>0.0.2</Version>
<PackageVersion>0.0.2</PackageVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageTags>Source Generator;Utility Type;Pick;Omit;Union;Intersect</PackageTags>
<PackageProjectUrl>https://github.com/prosser/UtilityTypeGenerator</PackageProjectUrl>
<RepositoryUrl>https://github.com/prosser/UtilityTypeGenerator</RepositoryUrl>
<PackageTags>Source Generator;Utility Type;Pick;Omit;Union;Intersection;Readonly;Required;UtilityType</PackageTags>
<Copyright>Copyright (c) Peter Rosser. All rights reserved.</Copyright>
<Authors>Peter Rosser</Authors>
<Description>TypeScript-style Utility Types for C# using source generation.</Description>
<Deterinistic>true</Deterinistic>
</PropertyGroup>

<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<!-- Generates a package at build -->
<IncludeBuildOutput>false</IncludeBuildOutput>
<UserSecretsId>12a42b22-3e6b-4905-8b19-8de13d2eed6a</UserSecretsId>
<!-- Do not include the generator as a lib dependency -->
<IncludeBuildOutput>true</IncludeBuildOutput>
</PropertyGroup>

<ItemGroup>
Expand All @@ -40,7 +46,7 @@
<PackageReference Include="Antlr4BuildTasks" Version="12.8.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.*" PrivateAssets="all" GeneratePathProperty="true" Pack="true" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.*" PrivateAssets="all" GeneratePathProperty="true" Pack="true" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.*" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.*" PrivateAssets="all" GeneratePathProperty="true" Pack="true" />
<PackageReference Include="PolySharp" Version="1.*" PrivateAssets="all">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down Expand Up @@ -72,6 +78,7 @@
<None Include="$(PkgAntlr4_Runtime_Standard)\lib\netstandard2.0\*.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(PkgMicrosoft_Bcl_HashCode)\lib\netstandard2.0\*.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(PkgMicrosoft_CodeAnalysis_CSharp)\lib\netstandard2.0\*.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(PkgMicrosoft_CodeAnalysis_Analyzers)\lib\netstandard2.0\*.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 76b97a3

Please sign in to comment.