Add [Category ("NotWorking")] to failing test.
[mono.git] / mcs / tools / xbuild / xbuild / 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         <ItemGroup>
20                 <DocFileItem Include="$(DocumentationFile)" Condition="'$(DocumentationFile)' != ''"/>
21         </ItemGroup>
22
23         <Target
24                 Name="CoreCompile"
25                 Inputs="$(MSBuildAllProjects);@(Compile);@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile);
26                         $(KeyOriginatorFile);@(ReferencePath);$(Win32Icon);$(Win32Resource)"
27                 Outputs="@(DocFileItem);@(IntermediateAssembly)"
28                 DependsOnTargets="$(CoreCompileDependsOn)"
29         >
30                 <Csc
31                         AdditionalLibPaths="$(AdditionalLibPaths)"
32                         AddModules="@(AddModules)"
33                         AllowUnsafeBlocks="$(AllowUnsafeBlocks)"
34                         BaseAddress="$(BaseAddress)"
35                         CheckForOverflowUnderflow="$(CheckForOverflowUnderflow)"
36                         CodePage="$(CodePage)"
37                         DebugType="$(DebugType)"
38                         DefineConstants="$(DefineConstants)"
39                         DelaySign="$(DelaySign)"
40                         DisabledWarnings="$(NoWarn)"
41                         DocumentationFile="@(DocFileItem)"
42                         EmitDebugInformation="$(DebugSymbols)"
43                         ErrorReport="$(ErrorReport)"
44                         FileAlignment="$(FileAlignment)"
45                         GenerateFullPaths="$(GenerateFullPaths)"
46                         KeyContainer="$(KeyContainerName)"
47                         KeyFile="$(KeyOriginatorFile)"
48                         LangVersion="$(LangVersion)"
49                         MainEntryPoint="$(StartupObject)"
50                         ModuleAssemblyName="$(ModuleAssemblyName)"
51                         NoConfig="true"
52                         NoLogo="$(NoLogo)"
53                         NoStandardLib="$(NoStdLib)"
54                         Optimize="$(Optimize)"
55                         OutputAssembly="@(IntermediateAssembly)"
56                         PdbFile="$(PdbFile)" 
57                         Platform="$(PlatformTarget)"
58                         References="@(ReferencePath)"
59                         ResponseFiles="$(CompilerResponseFile)"
60                         Sources="@(Compile)"
61                         TargetType="$(OutputType)"
62                         TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
63                         UseHostCompilerIfAvailable="$(UseHostCompilerIfAvailable)"
64                         Utf8Output="$(Utf8Output)"
65                         WarningLevel="$(WarningLevel)"
66                         WarningsAsErrors="$(WarningsAsErrors)"
67                         WarningsNotAsErrors="$(WarningsNotAsErrors)"
68                         Win32Icon="$(Win32Icon)"
69                         Win32Resource="$(Win32Resource)"
70                         Resources="@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile)"
71                         ToolExe="$(CscToolExe)"
72                         ToolPath="$(CscToolPath)" />
73
74         </Target>
75
76         <Target Name="CreateManifestResourceNames">
77                 <CreateCSharpManifestResourceName Condition="'@(ResxWithNoCulture)' != ''"
78                         ResourceFiles="@(ResxWithNoCulture)" RootNamespace="$(RootNamespace)">
79                         <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestResourceWithNoCultureName" />
80                 </CreateCSharpManifestResourceName>
81
82                 <CreateCSharpManifestResourceName Condition="'@(NonResxWithNoCulture)' != ''"
83                         ResourceFiles="@(NonResxWithNoCulture)" RootNamespace="$(RootNamespace)">
84                         <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestNonResxWithNoCulture" />
85                 </CreateCSharpManifestResourceName>
86
87                 <CreateCSharpManifestResourceName Condition="'@(ResxWithCulture)' != ''"
88                         ResourceFiles="@(ResxWithCulture)" RootNamespace="$(RootNamespace)">
89                         <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestResourceWithCultureName" />
90                 </CreateCSharpManifestResourceName>
91
92                 <CreateCSharpManifestResourceName Condition="'@(NonResxWithCulture)' != ''"
93                         ResourceFiles="@(NonResxWithCulture)" RootNamespace="$(RootNamespace)">
94                         <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestNonResxWithCulture" />
95                 </CreateCSharpManifestResourceName>
96         </Target>
97
98         <Import Project="Microsoft.Common.targets" />
99
100         <PropertyGroup>
101                 <CscToolExe Condition="'$(CscToolExe)' == '' and '$(TargetFrameworkVersion)' != 'v4.0' and '$(TargetFrameworkVersion)' != 'v4.5' and '$(OS)' != 'Windows_NT'">gmcs</CscToolExe>
102                 <CscToolExe Condition="'$(CscToolExe)' == '' and '$(TargetFrameworkVersion)' != 'v4.0' and '$(TargetFrameworkVersion)' != 'v4.5' and '$(OS)' == 'Windows_NT'">gmcs.bat</CscToolExe>
103
104                 <CscToolExe Condition="'$(CscToolExe)' == '' and '$(TargetFrameworkVersion)' == 'v4.5' and '$(OS)' != 'Windows_NT'">mcs</CscToolExe>
105                 <CscToolExe Condition="'$(CscToolExe)' == '' and '$(TargetFrameworkVersion)' == 'v4.5' and '$(OS)' == 'Windows_NT'">mcs.bat</CscToolExe>
106                 
107                 <CscToolExe Condition="'$(CscToolExe)' == '' and '$(TargetFrameworkVersion)' == 'v4.0' and '$(OS)' != 'Windows_NT'">dmcs</CscToolExe>
108                 <CscToolExe Condition="'$(CscToolExe)' == '' and '$(TargetFrameworkVersion)' == 'v4.0' and '$(OS)' == 'Windows_NT'">dmcs.bat</CscToolExe>
109         </PropertyGroup>
110         
111         <PropertyGroup>
112                 <TargetFrameworkMonikerAssemblyAttributeText Condition="'$(TargetFrameworkMoniker)' != '' and '$(TargetingClr2Framework)' != 'true'">
113 // &lt;autogenerated /&gt;
114 [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(&quot;$(TargetFrameworkMoniker)&quot;, FrameworkDisplayName = &quot;$(TargetFrameworkMonikerDisplayName)&quot;)]
115                 </TargetFrameworkMonikerAssemblyAttributeText>
116         </PropertyGroup>
117
118 </Project>