Skip to content

Commit e473a5c

Browse files
committed
for NuGet
1 parent a15bb6d commit e473a5c

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

Icon.png

3.11 KB
Loading

sandbox/NativeAot/NativeAot.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
8+
<IsPackable>false</IsPackable>
89

910
<PublishAot>true</PublishAot>
1011
<IsAotCompatible>true</IsAotCompatible>
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
2-
3-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
42

53
<PropertyGroup>
64
<TargetFramework>netstandard2.0</TargetFramework>
75
<LangVersion>12</LangVersion>
86
<ImplicitUsings>enable</ImplicitUsings>
97
<Nullable>enable</Nullable>
108
<RootNamespace>ConsoleAppFramework</RootNamespace>
11-
129
<IsRoslynComponent>true</IsRoslynComponent>
1310
<AnalyzerLanguage>cs</AnalyzerLanguage>
11+
12+
<!-- this is analyzer only package, does not need runtime self -->
13+
<IncludeBuildOutput>false</IncludeBuildOutput>
14+
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
15+
<IncludeSymbols>false</IncludeSymbols>
16+
<DevelopmentDependency>true</DevelopmentDependency>
17+
18+
<!-- NuGet -->
19+
<PackageId>ConsoleAppFramework</PackageId>
20+
<Description>Zero Dependency, Zero Overhead, Zero Reflection, Zero Allocation, AOT Safe CLI Framework powered by C# Source Generator.</Description>
1421
</PropertyGroup>
1522

1623
<ItemGroup>
@@ -21,6 +28,13 @@
2128
</PackageReference>
2229
</ItemGroup>
2330

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

36+
<ItemGroup>
37+
<None Include="../../Icon.png" Pack="true" PackagePath="/" />
38+
</ItemGroup>
39+
</Project>
2640

0 commit comments

Comments
 (0)