Changed UploadStringAsync to handle UploadString encapsulated exceptions.
[mono.git] / mcs / tools / xbuild / data / 12.0 / Microsoft.CSharp.targets
1 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2         <PropertyGroup>
3                 <DefaultLanguageSourceExtension>.cs</DefaultLanguageSourceExtension>
4                 <Language>C#</Language>
5         </PropertyGroup>
6
7         <PropertyGroup>
8                 <DebugSymbols Condition=" '$(DebugType)' == 'none' ">false</DebugSymbols>
9                 <DebugType    Condition=" '$(DebugType)' == 'none' "></DebugType>
10         </PropertyGroup>
11
12         <PropertyGroup>
13                 <CreateManifestResourceNamesDependsOn></CreateManifestResourceNamesDependsOn>
14                 <CoreCompileDependsOn></CoreCompileDependsOn>
15
16                 <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildToolsPath)\Microsoft.CSharp.targets</MSBuildAllProjects>
17         </PropertyGroup>
18
19         <PropertyGroup>
20                 <NoCompilerStandardLib Condition="'$(NoCompilerStandardLib)'==''">true</NoCompilerStandardLib>
21         </PropertyGroup>
22
23         <ItemGroup>
24                 <DocFileItem Include="$(DocumentationFile)" Condition="'$(DocumentationFile)' != ''"/>
25         </ItemGroup>
26
27         <Target Name="_AddCorlibReference" DependsOnTargets="GetReferenceAssemblyPaths">
28                 <!--
29                 HACK: We don't yet support property functions, so can't calculate FrameworkPathOverride
30                 by calling ToolLocationHelper.GetPathToStandardLibraries. Instead, we search the framework
31                 directories for mscorlib.dll by constructing a filtered item set, and assume it only has
32                 one item.
33                 -->
34                 <ItemGroup>
35                         <_ExplicitReference Include="@(_TargetFrameworkDirectories->'%(FullPath)\mscorlib.dll')" Condition="Exists('%(FullPath)\mscorlib.dll')">
36                                 <Private>false</Private>
37                         </_ExplicitReference>
38                 </ItemGroup>
39         </Target>
40
41         <Target
42                 Name="CoreCompile"
43                 Inputs="$(MSBuildAllProjects);@(Compile);@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile);
44                         $(KeyOriginatorFile);@(ReferencePath);$(Win32Icon);$(Win32Resource)"
45                 Outputs="@(DocFileItem);@(IntermediateAssembly)"
46                 DependsOnTargets="$(CoreCompileDependsOn)"
47         >
48                 <Csc
49                         AdditionalLibPaths="$(AdditionalLibPaths)"
50                         AddModules="@(AddModules)"
51                         AllowUnsafeBlocks="$(AllowUnsafeBlocks)"
52                         BaseAddress="$(BaseAddress)"
53                         CheckForOverflowUnderflow="$(CheckForOverflowUnderflow)"
54                         CodePage="$(CodePage)"
55                         DebugType="$(DebugType)"
56                         DefineConstants="$(DefineConstants)"
57                         DelaySign="$(DelaySign)"
58                         DisabledWarnings="$(NoWarn)"
59                         DocumentationFile="@(DocFileItem)"
60                         EmitDebugInformation="$(DebugSymbols)"
61                         ErrorReport="$(ErrorReport)"
62                         FileAlignment="$(FileAlignment)"
63                         GenerateFullPaths="$(GenerateFullPaths)"
64                         KeyContainer="$(KeyContainerName)"
65                         KeyFile="$(KeyOriginatorFile)"
66                         LangVersion="$(LangVersion)"
67                         MainEntryPoint="$(StartupObject)"
68                         ModuleAssemblyName="$(ModuleAssemblyName)"
69                         NoConfig="true"
70                         NoLogo="$(NoLogo)"
71                         NoStandardLib="$(NoCompilerStandardLib)"
72                         Optimize="$(Optimize)"
73                         OutputAssembly="@(IntermediateAssembly)"
74                         PdbFile="$(PdbFile)"
75                         Platform="$(PlatformTarget)"
76                         References="@(ReferencePath)"
77                         ResponseFiles="$(CompilerResponseFile)"
78                         Sources="@(Compile)"
79                         TargetType="$(OutputType)"
80                         TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
81                         UseHostCompilerIfAvailable="$(UseHostCompilerIfAvailable)"
82                         Utf8Output="$(Utf8Output)"
83                         WarningLevel="$(WarningLevel)"
84                         WarningsAsErrors="$(WarningsAsErrors)"
85                         WarningsNotAsErrors="$(WarningsNotAsErrors)"
86                         Win32Icon="$(Win32Icon)"
87                         Win32Resource="$(Win32Resource)"
88                         Resources="@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile)"
89                         ToolExe="$(CscToolExe)"
90                         ToolPath="$(CscToolPath)" />
91
92         </Target>
93
94         <Target Name="CreateManifestResourceNames">
95                 <CreateCSharpManifestResourceName Condition="'@(ResxWithNoCulture)' != ''"
96                         ResourceFiles="@(ResxWithNoCulture)" RootNamespace="$(RootNamespace)">
97                         <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestResourceWithNoCultureName" />
98                 </CreateCSharpManifestResourceName>
99
100                 <CreateCSharpManifestResourceName Condition="'@(NonResxWithNoCulture)' != ''"
101                         ResourceFiles="@(NonResxWithNoCulture)" RootNamespace="$(RootNamespace)">
102                         <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestNonResxWithNoCulture" />
103                 </CreateCSharpManifestResourceName>
104
105                 <CreateCSharpManifestResourceName Condition="'@(ResxWithCulture)' != ''"
106                         ResourceFiles="@(ResxWithCulture)" RootNamespace="$(RootNamespace)">
107                         <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestResourceWithCultureName" />
108                 </CreateCSharpManifestResourceName>
109
110                 <CreateCSharpManifestResourceName Condition="'@(NonResxWithCulture)' != ''"
111                         ResourceFiles="@(NonResxWithCulture)" RootNamespace="$(RootNamespace)">
112                         <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestNonResxWithCulture" />
113                 </CreateCSharpManifestResourceName>
114         </Target>
115
116         <Import Project="Microsoft.Common.targets" />
117
118         <PropertyGroup Condition="'$(NoCompilerStandardLib)'=='true' and '$(NoStdLib)'!='true'">
119                 <ResolveAssemblyReferencesDependsOn>$(ResolveAssemblyReferencesDependsOn);_AddCorlibReference</ResolveAssemblyReferencesDependsOn>
120         </PropertyGroup>
121
122         <PropertyGroup>
123                 <TargetFrameworkMonikerAssemblyAttributeText Condition="'$(TargetFrameworkMoniker)' != '' and '$(TargetingClr2Framework)' != 'true'">
124 // &lt;autogenerated /&gt;
125 [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(&quot;$(TargetFrameworkMoniker)&quot;, FrameworkDisplayName = &quot;$(TargetFrameworkMonikerDisplayName)&quot;)]
126                 </TargetFrameworkMonikerAssemblyAttributeText>
127         </PropertyGroup>
128
129 </Project>