Last active
April 8, 2025 20:22
-
-
Save attilah/fd3e71f03fd258c496179e0200c57b0b to your computer and use it in GitHub Desktop.
X.Y.Z.Sources nuget package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project> | |
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" /> | |
<PropertyGroup> | |
<TargetFramework>netstandard1.0</TargetFramework> | |
<IsPackable>true</IsPackable> | |
<IncludeBuildOutput>false</IncludeBuildOutput> | |
<ContentTargetFolders>contentFiles</ContentTargetFolders> | |
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences> | |
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | |
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute> | |
<NoWarn>CS8021</NoWarn> | |
<NoBuild>true</NoBuild> | |
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | |
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> | |
</PropertyGroup> | |
<ItemGroup> | |
<Compile Update="@(Compile)"> | |
<Pack>true</Pack> | |
<PackagePath>$(ContentTargetFolders)\cs\netstandard1.0\$(PackageId)\%(RecursiveDir)\</PackagePath> | |
</Compile> | |
<EmbeddedResource Update="@(EmbeddedResource)"> | |
<Pack>true</Pack> | |
<PackagePath>$(ContentTargetFolders)\any\any\$(PackageId)\%(RecursiveDir)\</PackagePath> | |
</EmbeddedResource> | |
</ItemGroup> | |
<ItemGroup> | |
<PackageReference Remove="@(PackageReference)" /> | |
</ItemGroup> | |
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" /> | |
<Target Name="Compile" /> | |
<Target Name="CopyFilesToOutputDirectory" /> | |
</Project> |
@inkahootz is that nugetizer or SDK pack?
SDK pack. The code from the gist is producing that.
Gist explanation: https://medium.com/@attilah/source-code-only-nuget-packages-8f34a8fb4738
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@inkahootz is that nugetizer or SDK pack?