Created
September 8, 2018 22:14
-
-
Save cpoDesign/1b484f72dd3e76e8e3ce620678828f9c to your computer and use it in GitHub Desktop.
Project setup for .net core showing how nuspec will get updated as part of a build
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
<?xml version="1.0" encoding="utf-8"?> | |
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | |
<metadata> | |
<id>project</id> | |
<version>0.0.1</version> | |
<authors>authors</authors> | |
<owners>Owners</owners> | |
<requireLicenseAcceptance>false</requireLicenseAcceptance> | |
<description>package desciptions</description> | |
</metadata> | |
<files> | |
<file src="file.dll" target="file.dll" /> | |
</files> | |
</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 Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFramework>netstandard2.0</TargetFramework> | |
<RootNamespace>ProjectName</RootNamespace> | |
</PropertyGroup> | |
<ItemGroup> | |
<!--removed information --> | |
</ItemGroup> | |
<Target Name="SetNuspecProperties" BeforeTargets="GenerateNuspec"> | |
<PropertyGroup> | |
<NuspecProperties>$(NuspecProperties);id=$(AssemblyName)</NuspecProperties> | |
<NuspecProperties>$(NuspecProperties);config=$(Configuration)</NuspecProperties> | |
<NuspecProperties>$(NuspecProperties);version=$(PackageVersion)</NuspecProperties> | |
<NuspecProperties>$(NuspecProperties);description=$(Description)</NuspecProperties> | |
<NuspecProperties>$(NuspecProperties);authors=$(Authors)</NuspecProperties> | |
</PropertyGroup> | |
<Message Importance="high" Text="NuspecProperties: $(NuspecProperties)" /> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment