2 ***********************************************************************************************
\r
3 Microsoft.NET.Sdk.CSharp.targets
\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
9 Copyright (c) .NET Foundation. All rights reserved.
\r
10 ***********************************************************************************************
\r
12 <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
\r
14 <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
\r
15 <AppDesignerFolder Condition="'$(AppDesignerFolder)' == ''">Properties</AppDesignerFolder>
\r
17 <PropertyGroup Condition="'$(DisableImplicitConfigurationDefines)' != 'true'">
\r
18 <ImplicitConfigurationDefine>$(Configuration.ToUpperInvariant())</ImplicitConfigurationDefine>
\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
29 <ImplicitConfigurationDefine>$(ImplicitConfigurationDefine.Replace('-', '_'))</ImplicitConfigurationDefine>
\r
30 <ImplicitConfigurationDefine>$(ImplicitConfigurationDefine.Replace('.', '_'))</ImplicitConfigurationDefine>
\r
31 <DefineConstants>$(DefineConstants);$(ImplicitConfigurationDefine)</DefineConstants>
\r
34 <DefineConstants>$(DefineConstants);$(ImplicitFrameworkDefine)</DefineConstants>
\r