/mcs/tools/xbuild/xbuild/Microsoft.CSharp.targets

http://github.com/mono/mono · MSBuild · 111 lines · 96 code · 15 blank · 0 comment · 13 complexity · 83d6b01cb55c903dc96fc7a9b1d2c069 MD5 · raw file

  1. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  2. <PropertyGroup>
  3. <DefaultLanguageSourceExtension>.cs</DefaultLanguageSourceExtension>
  4. <Language>C#</Language>
  5. </PropertyGroup>
  6. <PropertyGroup>
  7. <DebugSymbols Condition=" '$(DebugType)' == 'none' ">false</DebugSymbols>
  8. <DebugType Condition=" '$(DebugType)' == 'none' "></DebugType>
  9. </PropertyGroup>
  10. <PropertyGroup>
  11. <CreateManifestResourceNamesDependsOn></CreateManifestResourceNamesDependsOn>
  12. <CoreCompileDependsOn></CoreCompileDependsOn>
  13. <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildToolsPath)\Microsoft.CSharp.targets</MSBuildAllProjects>
  14. </PropertyGroup>
  15. <ItemGroup>
  16. <DocFileItem Include="$(DocumentationFile)" Condition="'$(DocumentationFile)' != ''"/>
  17. </ItemGroup>
  18. <Target
  19. Name="CoreCompile"
  20. Inputs="$(MSBuildAllProjects);@(Compile);@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile);@(DocFileItem);
  21. $(KeyOriginatorFile);@(ReferencePath);$(Win32Icon);$(Win32Resource)"
  22. Outputs="@(IntermediateAssembly)"
  23. DependsOnTargets="$(CoreCompileDependsOn)"
  24. >
  25. <Csc
  26. AdditionalLibPaths="$(AdditionalLibPaths)"
  27. AddModules="@(AddModules)"
  28. AllowUnsafeBlocks="$(AllowUnsafeBlocks)"
  29. BaseAddress="$(BaseAddress)"
  30. CheckForOverflowUnderflow="$(CheckForOverflowUnderflow)"
  31. CodePage="$(CodePage)"
  32. DebugType="$(DebugType)"
  33. DefineConstants="$(DefineConstants)"
  34. DelaySign="$(DelaySign)"
  35. DisabledWarnings="$(NoWarn)"
  36. DocumentationFile="@(DocFileItem)"
  37. EmitDebugInformation="$(DebugSymbols)"
  38. ErrorReport="$(ErrorReport)"
  39. FileAlignment="$(FileAlignment)"
  40. GenerateFullPaths="$(GenerateFullPaths)"
  41. KeyContainer="$(KeyContainerName)"
  42. KeyFile="$(KeyOriginatorFile)"
  43. LangVersion="$(LangVersion)"
  44. MainEntryPoint="$(StartupObject)"
  45. ModuleAssemblyName="$(ModuleAssemblyName)"
  46. NoConfig="true"
  47. NoLogo="$(NoLogo)"
  48. NoStandardLib="$(NoStdLib)"
  49. Optimize="$(Optimize)"
  50. OutputAssembly="@(IntermediateAssembly)"
  51. PdbFile="$(PdbFile)"
  52. Platform="$(PlatformTarget)"
  53. References="@(ReferencePath)"
  54. ResponseFiles="$(CompilerResponseFile)"
  55. Sources="@(Compile)"
  56. TargetType="$(OutputType)"
  57. TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
  58. UseHostCompilerIfAvailable="$(UseHostCompilerIfAvailable)"
  59. Utf8Output="$(Utf8Output)"
  60. WarningLevel="$(WarningLevel)"
  61. WarningsAsErrors="$(WarningsAsErrors)"
  62. WarningsNotAsErrors="$(WarningsNotAsErrors)"
  63. Win32Icon="$(Win32Icon)"
  64. Win32Resource="$(Win32Resource)"
  65. Resources="@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile)"
  66. ToolExe="$(CscToolExe)"
  67. ToolPath="$(CscToolPath)" />
  68. </Target>
  69. <Target Name="CreateManifestResourceNames">
  70. <CreateCSharpManifestResourceName Condition="'@(ResxWithNoCulture)' != ''"
  71. ResourceFiles="@(ResxWithNoCulture)" RootNamespace="$(RootNamespace)">
  72. <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestResourceWithNoCultureName" />
  73. </CreateCSharpManifestResourceName>
  74. <CreateCSharpManifestResourceName Condition="'@(NonResxWithNoCulture)' != ''"
  75. ResourceFiles="@(NonResxWithNoCulture)" RootNamespace="$(RootNamespace)">
  76. <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestNonResxWithNoCulture" />
  77. </CreateCSharpManifestResourceName>
  78. <CreateCSharpManifestResourceName Condition="'@(ResxWithCulture)' != ''"
  79. ResourceFiles="@(ResxWithCulture)" RootNamespace="$(RootNamespace)">
  80. <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestResourceWithCultureName" />
  81. </CreateCSharpManifestResourceName>
  82. <CreateCSharpManifestResourceName Condition="'@(NonResxWithCulture)' != ''"
  83. ResourceFiles="@(NonResxWithCulture)" RootNamespace="$(RootNamespace)">
  84. <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestNonResxWithCulture" />
  85. </CreateCSharpManifestResourceName>
  86. </Target>
  87. <Import Project="Microsoft.Common.targets" />
  88. <PropertyGroup>
  89. <CscToolExe Condition="'$(CscToolExe)' == '' and '$(TargetFrameworkVersion)' != 'v4.0' and '$(TargetFrameworkVersion)' != 'v4.5' and '$(OS)' != 'Windows_NT'">gmcs</CscToolExe>
  90. <CscToolExe Condition="'$(CscToolExe)' == '' and '$(TargetFrameworkVersion)' != 'v4.0' and '$(TargetFrameworkVersion)' != 'v4.5' and '$(OS)' == 'Windows_NT'">gmcs.bat</CscToolExe>
  91. <CscToolExe Condition="'$(CscToolExe)' == '' and '$(TargetFrameworkVersion)' == 'v4.5' and '$(OS)' != 'Windows_NT'">mcs</CscToolExe>
  92. <CscToolExe Condition="'$(CscToolExe)' == '' and '$(TargetFrameworkVersion)' == 'v4.5' and '$(OS)' == 'Windows_NT'">mcs.bat</CscToolExe>
  93. <CscToolExe Condition="'$(CscToolExe)' == '' and '$(TargetFrameworkVersion)' == 'v4.0' and '$(OS)' != 'Windows_NT'">dmcs</CscToolExe>
  94. <CscToolExe Condition="'$(CscToolExe)' == '' and '$(TargetFrameworkVersion)' == 'v4.0' and '$(OS)' == 'Windows_NT'">dmcs.bat</CscToolExe>
  95. </PropertyGroup>
  96. </Project>