Skip to content

Instantly share code, notes, and snippets.

@jrgcubano
Forked from attilah/X.Y.Z.Sources.csproj
Created April 18, 2024 08:52
Show Gist options
  • Select an option

  • Save jrgcubano/7412de80271bed5f365c4e5fbf085887 to your computer and use it in GitHub Desktop.

Select an option

Save jrgcubano/7412de80271bed5f365c4e5fbf085887 to your computer and use it in GitHub Desktop.

Revisions

  1. @attilah attilah revised this gist Aug 4, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions X.Y.Z.Sources.csproj
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,7 @@
    <NoWarn>CS8021</NoWarn>
    <NoBuild>true</NoBuild>
    <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
    <SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
    </PropertyGroup>

    <ItemGroup>
  2. @attilah attilah revised this gist Jun 2, 2018. 1 changed file with 0 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions X.Y.Z.Sources.csproj
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,6 @@

    <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />

    <PropertyGroup>
    <Description>$(PackageId)</Description>
    </PropertyGroup>

    <PropertyGroup>
    <TargetFramework>netstandard1.0</TargetFramework>
    <IsPackable>true</IsPackable>
  3. @attilah attilah revised this gist Jun 2, 2018. 1 changed file with 11 additions and 2 deletions.
    13 changes: 11 additions & 2 deletions X.Y.Z.Sources.csproj
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    <Project Sdk="Microsoft.NET.Sdk">
    <Project>

    <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />

    <PropertyGroup>
    <Description>$(PackageId)</Description>
    @@ -13,6 +15,8 @@
    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
    <GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
    <NoWarn>CS8021</NoWarn>
    <NoBuild>true</NoBuild>
    <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
    </PropertyGroup>

    <ItemGroup>
    @@ -30,4 +34,9 @@
    <PackageReference Remove="@(PackageReference)" />
    </ItemGroup>

    </Project>
    <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />

    <Target Name="Compile" />
    <Target Name="CopyFilesToOutputDirectory" />

    </Project>
  4. @attilah attilah created this gist Jun 2, 2018.
    33 changes: 33 additions & 0 deletions X.Y.Z.Sources.csproj
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    <Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
    <Description>$(PackageId)</Description>
    </PropertyGroup>

    <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>
    </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>

    </Project>