Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Nuspec in csproj #33

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 58 additions & 35 deletions Main/src/CodeJam.Main.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2F2046CC-FB47-4318-B335-5A82B04B6C40}</ProjectGuid>
<OutputType>Library</OutputType>
<TargetFrameworks>net4.5.2;net3.5;net4.0;net4.5;net4.5.1;net4.6;net4.6.1</TargetFrameworks>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<Version>1.3.0-rc1</Version>
<Authors>Andrew Koryavchenko, Igor Sinicyn, Igor Tkachev, rameel</Authors>
<Company>RSDN.ru</Company>
<PackageId>CodeJam</PackageId>
<Product>CodeJam</Product>
<Description>CodeJam is a set of handy reusable .NET components that can simplify your daily work and save your time when you copy and paste your favorite helper methods and classes from one project to another.</Description>
<Copyright>RSDN.ru, 2017</Copyright>
<PackageType>DotNetCliTool, 1.0.0.0;Dependency, 2.0.0.0</PackageType>
<PackageTags>list string collection data-structure threading xml reflection async assertion IO extension algorithms structures utilities suffix-tree range tagged-union discriminated union discriminated-union variant variant-record disjoint-union sum-type</PackageTags>
<PackageLicenseUrl>https://github.com/rsdn/CodeJam/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/rsdn/CodeJam</PackageProjectUrl>
<PackageIconUrl>https://raw.githubusercontent.com/rsdn/CodeJam/master/Main/nuget/CodeJam.Main.Icon.png</PackageIconUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/rsdn/CodeJam</RepositoryUrl>
<PackageReleaseNotes>..\build\Readme.txt</PackageReleaseNotes>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<FileVersion>1.3.0.0</FileVersion>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\CodeJam.snk</AssemblyOriginatorKeyFile>
<DelaySign>False</DelaySign>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CodeJam</RootNamespace>
<AssemblyName>CodeJam</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
Expand All @@ -22,7 +38,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DocumentationFile>bin\Debug\CodeJam.XML</DocumentationFile>
<DocumentationFile>$(OutputPath)\CodeJam.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -32,14 +48,39 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DocumentationFile>bin\Release\CodeJam.XML</DocumentationFile>
<DocumentationFile>$(OutputPath)\CodeJam.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net3.5' ">
<DefineConstants>$(DefineConstants);FW461;FW46;FW452;FW451;FW45;FW40;FW35</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>..\..\CodeJam.snk</AssemblyOriginatorKeyFile>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net4.0' ">
<DefineConstants>$(DefineConstants);FW461;FW46;FW452;FW451;FW45;FW40</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net4.5' ">
<DefineConstants>$(DefineConstants);FW461;FW46;FW452;FW451;FW45</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net4.5.1' ">
<DefineConstants>$(DefineConstants);FW461;FW46;FW452;FW451</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net4.5.2' ">
<DefineConstants>$(DefineConstants);FW461;FW46;FW452</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net4.6' ">
<DefineConstants>$(DefineConstants);FW461;FW46</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net4.6.1' ">
<DefineConstants>$(DefineConstants);FW461</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.4' ">
<DefineConstants>$(DefineConstants);FW461</DefineConstants>
</PropertyGroup>

<ItemGroup Condition=" $(DefineConstants.Contains('FW35')) ">
<PackageReference Include="TaskParallelLibrary" Version="1.0.2856.0" />
</ItemGroup>
<ItemGroup Condition=" !$(DefineConstants.Contains('FW40')) ">
<PackageReference Include="System.ValueTuple" Version="4.3.0" />
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.ComponentModel.DataAnnotations" />
Expand Down Expand Up @@ -398,13 +439,8 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Collections\Enumerable\EnumerableExtensions.MinMaxBy.cs" />
<None Include="Compile.cmd">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Compile.tt</DependentUpon>
</None>
<None Include="Compile.cmd" />
<Compile Include="Reflection\ReflectionExtensions.CreateInstance.cs" />
<None Include="packages.config" />
<None Include="Ranges\RangesPlannedChanges.md" />
<None Include="Ranges\[Boundaries]\RangeBoundaryToReplacer.ttinclude" />
<None Include="Ranges\[Ranges]\RangeWithTKeyReplacer.ttinclude" />
Expand Down Expand Up @@ -540,21 +576,8 @@
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>EnumerableExtensions.MinMaxBy.generated.cs</LastGenOutput>
</Content>
<Content Include="Compile.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Compile.cmd</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ after_build:

- ps: $mainVer = (Get-Content Main\nuget\CodeJam.Main.nuspec).package.metadata.version
- ps: "$mainVer"
- ps: nuget pack Main\nuget\CodeJam.Main.nuspec -version "$env:nugetVersion"
#- ps: nuget pack Main\nuget\CodeJam.Main.nuspec -version "$env:nugetVersion" # done via Compile.cmd
- ps: nuget pack Blocks\nuget\CodeJam.Blocks.nuspec -version "$env:nugetVersion"
- ps: nuget pack Experimental\nuget\CodeJam.Experimental.nuspec -version "$env:nugetVersion"
- ps: nuget pack PerfTests\nuget\CodeJam.PerfTests.Core.nuspec -version "$env:nugetVersion"
Expand Down