Skip to content

Commit

Permalink
A couple of better defaults for library projects and platform targets.
Browse files Browse the repository at this point in the history
Library projects will now always output to the AnyCPU bin directory. Tests will still output to an arch-specific directory.
  • Loading branch information
mellinoe committed Sep 24, 2016
1 parent 8d6d63f commit c50a9fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion corebuild.props
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
</PropertyGroup>

<PropertyGroup>
<PlatformTarget Condition="'$(Platform)' == 'x64'">x64</PlatformTarget>
<PlatformTarget Condition="'$(OutputType)' == 'Library'">AnyCPU</PlatformTarget>
<PlatformTarget Condition="'$(PlatformTarget)' == ''">$(Platform)</PlatformTarget>
<PlatformTarget Condition="'$(PlatformTarget)' == ''">x64</PlatformTarget>
</PropertyGroup>

Expand Down
5 changes: 5 additions & 0 deletions test.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup Condition="$(AssemblyName.Contains('Test'))">
<TestPlatform Condition="'$(TestPlatform)' == ''">x64</TestPlatform>
<NuGetRuntimeIdentifier>$(BaseNugetRuntimeIdentifier)-$(TestPlatform)</NuGetRuntimeIdentifier>
</PropertyGroup>

<PropertyGroup>
<AdditionalXunitArgs Condition="'$(OS)' != 'Windows_NT'">$(AdditionalXunitArgs) -notrait category=nonlinuxtests</AdditionalXunitArgs>
</PropertyGroup>
Expand Down

0 comments on commit c50a9fe

Please sign in to comment.