Build csapi with Release configuration
[platform/core/dotnet/build-tools.git] / dotnet / sdk / 2.0.0 / Sdks / Microsoft.NET.Sdk / build / Microsoft.NET.Sdk.CSharp.targets
1 <!--\r
2 ***********************************************************************************************\r
3 Microsoft.NET.Sdk.CSharp.targets\r
4 \r
5 WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have\r
6           created a backup copy.  Incorrect changes to this file will make it\r
7           impossible to load or build your projects from the command-line or the IDE.\r
8 \r
9 Copyright (c) .NET Foundation. All rights reserved. \r
10 ***********************************************************************************************\r
11 -->\r
12 <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
13   <PropertyGroup>\r
14     <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>\r
15     <AppDesignerFolder Condition="'$(AppDesignerFolder)' == ''">Properties</AppDesignerFolder>\r
16   </PropertyGroup>\r
17   <PropertyGroup Condition="'$(DisableImplicitConfigurationDefines)' != 'true'">\r
18     <ImplicitConfigurationDefine>$(Configuration.ToUpperInvariant())</ImplicitConfigurationDefine>\r
19     \r
20     <!-- Replace dashes and periods in the configuration with underscores.  This makes it more likely that\r
21          the resulting compilation constant will be a valid C# conditional compilation symbol.  As the set\r
22          of characters that aren't allowed is essentially open-ended, there's probably not a good way to\r
23          fully sanitize the Configuration in MSBuild evaluation.  If the resulting string still isn't a\r
24          valid conditional combilation symbol, then the compiler will generate the following error and\r
25          the define will be ignored:\r
26             warning MSB3052: The parameter to the compiler is invalid, '/define:0BAD_DEFINE' will be ignored.\r
27          -->\r
28     \r
29     <ImplicitConfigurationDefine>$(ImplicitConfigurationDefine.Replace('-', '_'))</ImplicitConfigurationDefine>\r
30     <ImplicitConfigurationDefine>$(ImplicitConfigurationDefine.Replace('.', '_'))</ImplicitConfigurationDefine>\r
31     <DefineConstants>$(DefineConstants);$(ImplicitConfigurationDefine)</DefineConstants>\r
32   </PropertyGroup>\r
33   <PropertyGroup>\r
34     <DefineConstants>$(DefineConstants);$(ImplicitFrameworkDefine)</DefineConstants>\r
35   </PropertyGroup>\r
36 </Project>\r