Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Cleaning and unifying csproj files (#236)
Browse files Browse the repository at this point in the history
- Part of this work is to enable building the project on Linux.
  • Loading branch information
jorive committed Jun 9, 2017
1 parent 8d12886 commit fc429e3
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 116 deletions.
1 change: 1 addition & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<configuration>
<packageSources>
<add key="myget.org dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
42 changes: 42 additions & 0 deletions src/common.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<Project>
<!--<Import Project="dependencies.props" />-->
<Import Project="$(MSBuildThisFileDirectory)/version.props" />

<PropertyGroup Condition="'$(GitHeadSha)' != ''">
<CommitHash>$(GitHeadSha)</CommitHash>
</PropertyGroup>

<PropertyGroup Label="Repository information">
<Product>Microsoft xUnit Performance Api</Product>
<RepositoryUrl>https://github.com/Microsoft/xunit-performance</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<PropertyGroup Label="Build properties">
<Description>xUnit Performance Api
Commit SHA: $(CommitHash)
</Description>

<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>1701;1702;1705;1591</NoWarn>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>

<VersionSuffix Condition="'$(VersionSuffix)'!='' AND '$(BuildNumber)' != ''">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
</PropertyGroup>

<PropertyGroup Label="Define constants">
<DefineConstants Condition="'$(OS)' == 'Windows_NT'">WINDOWS_NT</DefineConstants>
</PropertyGroup>

<PropertyGroup Label="NuGet package information">
<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</PackageIconUrl>
<PackageProjectUrl>https://github.com/Microsoft/xunit-performance</PackageProjectUrl>
<PackageLicenseUrl>https://raw.githubusercontent.com/Microsoft/xunit-performance/master/LICENSE</PackageLicenseUrl>
</PropertyGroup>

<PropertyGroup Label="Signing">
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)common/xunit.performance.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PublicSign Condition="'$(OS)' != 'Windows_NT'">true</PublicSign>
</PropertyGroup>
</Project>
10 changes: 0 additions & 10 deletions src/common/GlobalAssemblyInfo.cs

This file was deleted.

6 changes: 6 additions & 0 deletions src/version.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project>
<PropertyGroup>
<MicrosoftDiagnosticsTracingLibraryVersion>1.0.3-alpha-experimental</MicrosoftDiagnosticsTracingLibraryVersion>
<XunitPackageVersion>2.2.0-beta2-build3300</XunitPackageVersion>
</PropertyGroup>
</Project>
33 changes: 4 additions & 29 deletions src/xunit.performance.api/xunit.performance.api.csproj
Original file line number Diff line number Diff line change
@@ -1,47 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Label="Configuration">
<DefineConstants Condition="'$(OS)' == 'Windows_NT'">WINDOWS_NT</DefineConstants>
<RootNamespace>Microsoft.Xunit.Performance.Api</RootNamespace>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition="'$(GitHeadSha)' != ''">
<CommitHash>$(GitHeadSha)</CommitHash>
</PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)../common.props" />

<PropertyGroup>
<AssemblyTitle>xunit.performance.api</AssemblyTitle>
<Description>xUnit Performance Api
Commit SHA: $(CommitHash)
</Description>
<TargetFramework>netstandard1.5</TargetFramework>
<Title>xUnit Performance Api</Title>

<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</PackageIconUrl>
<PackageProjectUrl>https://github.com/Microsoft/xunit-performance</PackageProjectUrl>
<PackageLicenseUrl>https://raw.githubusercontent.com/Microsoft/xunit-performance/master/LICENSE</PackageLicenseUrl>
</PropertyGroup>

<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>1701;1702;1705;1591</NoWarn>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\common\GlobalAssemblyInfo.cs" Link="GlobalAssemblyInfo.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.1.1-beta" />
<PackageReference Include="Microsoft.3rdpartytools.MarkdownLog" Version="0.10.0-alpha-experimental" />
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="1.0.3-alpha-experimental">
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="$(MicrosoftDiagnosticsTracingLibraryVersion)">
<IncludeAssets>All</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Security.Principal.Windows" Version="4.3.0" />
<PackageReference Include="System.ValueTuple" Version="4.3.0" />
<PackageReference Include="System.ValueTuple" Version="4.3.1" />
<PackageReference Include="System.Xml.XmlSerializer" Version="4.3.0" />
<PackageReference Include="xunit.runner.utility" Version="2.2.0-beta2-build3300" />
<PackageReference Include="xunit.runner.utility" Version="$(XunitPackageVersion)" />
</ItemGroup>

<ItemGroup>
Expand Down
29 changes: 3 additions & 26 deletions src/xunit.performance.core/xunit.performance.core.csproj
Original file line number Diff line number Diff line change
@@ -1,38 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Label="Configuration">
<DefineConstants Condition="'$(OS)' == 'Windows_NT'">WINDOWS_NT</DefineConstants>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition="'$(GitHeadSha)' != ''">
<CommitHash>$(GitHeadSha)</CommitHash>
</PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)../common.props" />

<PropertyGroup>
<AssemblyTitle>xunit.performance.core</AssemblyTitle>
<Description>xUnit Performance Core
Commit SHA: $(CommitHash)
</Description>
<TargetFramework>netstandard1.3</TargetFramework>
<Title>xUnit Performance Core</Title>

<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</PackageIconUrl>
<PackageProjectUrl>https://github.com/Microsoft/xunit-performance</PackageProjectUrl>
<PackageLicenseUrl>https://raw.githubusercontent.com/Microsoft/xunit-performance/master/LICENSE</PackageLicenseUrl>
</PropertyGroup>

<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>1701;1702;1705;1591</NoWarn>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\common\GlobalAssemblyInfo.cs" Link="GlobalAssemblyInfo.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="xunit.extensibility.core" Version="2.2.0-beta2-build3300" />
<PackageReference Include="xunit.extensibility.core" Version="$(XunitPackageVersion)" />
</ItemGroup>

</Project>
</Project>
29 changes: 3 additions & 26 deletions src/xunit.performance.execution/xunit.performance.execution.csproj
Original file line number Diff line number Diff line change
@@ -1,43 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Label="Configuration">
<DefineConstants Condition="'$(OS)' == 'Windows_NT'">WINDOWS_NT</DefineConstants>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition="'$(GitHeadSha)' != ''">
<CommitHash>$(GitHeadSha)</CommitHash>
</PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)../common.props" />

<PropertyGroup>
<AssemblyTitle>xunit.performance.execution</AssemblyTitle>
<Description>xUnit Performance Execution
Commit SHA: $(CommitHash)
</Description>
<TargetFramework>netstandard1.5</TargetFramework>
<Title>xUnit Performance Core</Title>
<Title>xUnit Performance Execution</Title>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</PackageIconUrl>
<PackageProjectUrl>https://github.com/Microsoft/xunit-performance</PackageProjectUrl>
<PackageLicenseUrl>https://raw.githubusercontent.com/Microsoft/xunit-performance/master/LICENSE</PackageLicenseUrl>
</PropertyGroup>

<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>1701;1702;1705;1591</NoWarn>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\common\GlobalAssemblyInfo.cs" Link="GlobalAssemblyInfo.cs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\xunit.performance.core\xunit.performance.core.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="xunit" Version="2.2.0-beta2-build3300" />
<PackageReference Include="xunit" Version="$(XunitPackageVersion)" />
</ItemGroup>

</Project>
27 changes: 2 additions & 25 deletions src/xunit.performance.metrics/xunit.performance.metrics.csproj
Original file line number Diff line number Diff line change
@@ -1,42 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Label="Configuration">
<DefineConstants Condition="'$(OS)' == 'Windows_NT'">WINDOWS_NT</DefineConstants>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition="'$(GitHeadSha)' != ''">
<CommitHash>$(GitHeadSha)</CommitHash>
</PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)../common.props" />

<PropertyGroup>
<AssemblyTitle>xunit.performance.metrics</AssemblyTitle>
<Description>xUnit Performance Metrics
Commit SHA: $(CommitHash)
</Description>
<TargetFramework>netstandard1.5</TargetFramework>
<Title>xUnit Performance Metrics</Title>

<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</PackageIconUrl>
<PackageProjectUrl>https://github.com/Microsoft/xunit-performance</PackageProjectUrl>
<PackageLicenseUrl>https://raw.githubusercontent.com/Microsoft/xunit-performance/master/LICENSE</PackageLicenseUrl>
</PropertyGroup>

<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>1701;1702;1705;1591</NoWarn>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\common\GlobalAssemblyInfo.cs" Link="GlobalAssemblyInfo.cs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\xunit.performance.core\xunit.performance.core.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="1.0.3-alpha-experimental" />
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="$(MicrosoftDiagnosticsTracingLibraryVersion)" />
<PackageReference Include="System.Runtime.Serialization.Formatters" Version="4.3.0" />
<PackageReference Include="xunit.abstractions" Version="2.0.1" />
</ItemGroup>
Expand Down

0 comments on commit fc429e3

Please sign in to comment.