Skip to content

Commit

Permalink
for NuGet
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Jun 2, 2024
1 parent a15bb6d commit e473a5c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
Binary file added Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions sandbox/NativeAot/NativeAot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>

<PublishAot>true</PublishAot>
<IsAotCompatible>true</IsAotCompatible>
Expand Down
24 changes: 19 additions & 5 deletions src/ConsoleAppFramework/ConsoleAppFramework.csproj
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@


<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>12</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>ConsoleAppFramework</RootNamespace>

<IsRoslynComponent>true</IsRoslynComponent>
<AnalyzerLanguage>cs</AnalyzerLanguage>

<!-- this is analyzer only package, does not need runtime self -->
<IncludeBuildOutput>false</IncludeBuildOutput>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<IncludeSymbols>false</IncludeSymbols>
<DevelopmentDependency>true</DevelopmentDependency>

<!-- NuGet -->
<PackageId>ConsoleAppFramework</PackageId>
<Description>Zero Dependency, Zero Overhead, Zero Reflection, Zero Allocation, AOT Safe CLI Framework powered by C# Source Generator.</Description>
</PropertyGroup>

<ItemGroup>
Expand All @@ -21,6 +28,13 @@
</PackageReference>
</ItemGroup>

</Project>
<ItemGroup>
<!-- Create nuget package as analyzer -->
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>

<ItemGroup>
<None Include="../../Icon.png" Pack="true" PackagePath="/" />
</ItemGroup>
</Project>

0 comments on commit e473a5c

Please sign in to comment.