Skip to content

Commit

Permalink
Merge pull request dotnet#949 from RaulPerez1/DefaultConfigs
Browse files Browse the repository at this point in the history
Add default configs to be consumed by the new schema
  • Loading branch information
RaulPerez1 authored Mar 16, 2017
2 parents e1af1e7 + 33a551f commit 9717baa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
17 changes: 6 additions & 11 deletions src/Tasks/Microsoft.NET.Build.Tasks/build/Microsoft.NET.Sdk.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,12 @@ Copyright (c) .NET Foundation. All rights reserved.

<!-- Default configuration and platform to Debug|AnyCPU-->
<PropertyGroup>
<Configurations Condition=" '$(Configurations)' == '' ">Debug;Release</Configurations>
<Platforms Condition=" '$(Platforms)' == '' ">AnyCPU</Platforms>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
</PropertyGroup>

<!--
Ensure VS sees two default configurations: Debug|AnyCPU and Release|AnyCPU
This is temporary until we have designed and implemented a new configuration management scheme,
which is tracked by https://github.com/dotnet/sdk/issues/350. In the meantime, one consequence of
defining these defaults here with the old inference-from-usage scheme here is that the user cannot
remove or rename them.
-->
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "/>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "/>

<!-- User-facing configuration-agnostic defaults -->
<PropertyGroup>
<OutputType Condition=" '$(OutputType)' == '' ">Library</OutputType>
Expand Down Expand Up @@ -128,6 +119,10 @@ Copyright (c) .NET Foundation. All rights reserved.
<GenerateResourceMSBuildRuntime Condition=" '$(GenerateResourceMSBuildRuntime)' == '' ">CurrentRuntime</GenerateResourceMSBuildRuntime>
</PropertyGroup>

<!-- Workaround: https://github.com/dotnet/sdk/issues/1001 -->
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "/>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "/>

<Import Project="$(MSBuildThisFileDirectory)Microsoft.NET.Sdk.CSharp.props" Condition="'$(MSBuildProjectExtension)' == '.csproj'" />
<Import Project="$(MSBuildThisFileDirectory)Microsoft.NET.Sdk.VisualBasic.props" Condition="'$(MSBuildProjectExtension)' == '.vbproj'" />
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -433,5 +433,5 @@ Copyright (c) .NET Foundation. All rights reserved.
<Message Importance="Low" Text="Including @(ReferencePath)" Condition="'%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandDesignTimeFacades'" />

</Target>

</Project>

0 comments on commit 9717baa

Please sign in to comment.