Microsoft.VisualBasic.Core.targets 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  2. <Target
  3. Name="CoreCompile"
  4. Inputs="$(MSBuildAllProjects);
  5. @(Compile);
  6. @(_CoreCompileResourceInputs);
  7. $(ApplicationIcon);
  8. $(AssemblyOriginatorKeyFile);
  9. @(ReferencePath);
  10. @(CompiledLicenseFile);
  11. @(LinkResource);
  12. @(EmbeddedDocumentation);
  13. $(Win32Resource);
  14. $(Win32Manifest);
  15. @(CustomAdditionalCompileInputs);
  16. $(ResolvedCodeAnalysisRuleSet)"
  17. Outputs="@(DocFileItem);
  18. @(IntermediateAssembly);
  19. @(_DebugSymbolsIntermediatePath);
  20. $(NonExistentFile);
  21. @(CustomAdditionalCompileOutputs)"
  22. Returns=""
  23. DependsOnTargets="$(CoreCompileDependsOn)"
  24. >
  25. <PropertyGroup>
  26. <_NoWarnings Condition=" '$(WarningLevel)' == '0' ">true</_NoWarnings>
  27. <_NoWarnings Condition=" '$(WarningLevel)' == '1' ">false</_NoWarnings>
  28. </PropertyGroup>
  29. <PropertyGroup>
  30. <!-- If we are targeting winmdobj we want to specifically the pdbFile property since we do not want it to collide with the output of winmdexp-->
  31. <PdbFile Condition="'$(PdbFile)' == '' and '$(OutputType)' == 'winmdobj' and '$(DebugSymbols)' == 'true'">$(IntermediateOutputPath)$(TargetName).compile.pdb</PdbFile>
  32. </PropertyGroup>
  33. <ItemGroup Condition="'$(TargetingClr2Framework)'=='true'">
  34. <ReferencePath>
  35. <EmbedInteropTypes/>
  36. </ReferencePath>
  37. </ItemGroup>
  38. <!-- Prefer32Bit was introduced in .NET 4.5. Set it to false if we are targeting 4.0 -->
  39. <PropertyGroup Condition="('$(TargetFrameworkVersion)' == 'v4.0')">
  40. <Prefer32Bit>false</Prefer32Bit>
  41. </PropertyGroup>
  42. <ItemGroup Condition="('$(AdditionalFileItemNames)' != '')">
  43. <AdditionalFileItems Include="$(AdditionalFileItemNames)" />
  44. <AdditionalFiles Include="@(%(AdditionalFileItems.Identity))" />
  45. </ItemGroup>
  46. <PropertyGroup Condition="'$(UseSharedCompilation)' == ''">
  47. <UseSharedCompilation>true</UseSharedCompilation>
  48. </PropertyGroup>
  49. <!-- Condition is to filter out the _CoreCompileResourceInputs so that it doesn't pass in culture resources to the compiler -->
  50. <Vbc Condition=" '%(_CoreCompileResourceInputs.WithCulture)' != 'true' "
  51. AdditionalLibPaths="$(AdditionalLibPaths)"
  52. AddModules="@(AddModules)"
  53. AdditionalFiles="@(AdditionalFiles)"
  54. Analyzers="@(Analyzer)"
  55. BaseAddress="$(BaseAddress)"
  56. CodeAnalysisRuleSet="$(ResolvedCodeAnalysisRuleSet)"
  57. CodePage="$(CodePage)"
  58. DebugType="$(DebugType)"
  59. DefineConstants="$(FinalDefineConstants)"
  60. DelaySign="$(DelaySign)"
  61. DisabledWarnings="$(NoWarn)"
  62. DocumentationFile="@(DocFileItem)"
  63. EmitDebugInformation="$(DebugSymbols)"
  64. EnvironmentVariables="$(VbcEnvironment)"
  65. ErrorLog="$(ErrorLog)"
  66. ErrorReport="$(ErrorReport)"
  67. FileAlignment="$(FileAlignment)"
  68. GenerateDocumentation="$(GenerateDocumentation)"
  69. HighEntropyVA="$(HighEntropyVA)"
  70. Imports="@(Import)"
  71. KeyContainer="$(KeyContainerName)"
  72. KeyFile="$(KeyOriginatorFile)"
  73. LangVersion="$(LangVersion)"
  74. LinkResources="@(LinkResource)"
  75. MainEntryPoint="$(StartupObject)"
  76. ModuleAssemblyName="$(ModuleAssemblyName)"
  77. NoConfig="true"
  78. NoStandardLib="$(NoCompilerStandardLib)"
  79. NoVBRuntimeReference="$(NoVBRuntimeReference)"
  80. NoWarnings="$(_NoWarnings)"
  81. NoWin32Manifest="$(NoWin32Manifest)"
  82. Optimize="$(Optimize)"
  83. OptionCompare="$(OptionCompare)"
  84. OptionExplicit="$(OptionExplicit)"
  85. OptionInfer="$(OptionInfer)"
  86. OptionStrict="$(OptionStrict)"
  87. OptionStrictType="$(OptionStrictType)"
  88. OutputAssembly="@(IntermediateAssembly)"
  89. PdbFile="$(PdbFile)"
  90. Platform="$(PlatformTarget)"
  91. Prefer32Bit="$(Prefer32Bit)"
  92. PreferredUILang="$(PreferredUILang)"
  93. References="@(ReferencePath)"
  94. RemoveIntegerChecks="$(RemoveIntegerChecks)"
  95. ReportAnalyzer="$(ReportAnalyzer)"
  96. Resources="@(_CoreCompileResourceInputs);@(CompiledLicenseFile)"
  97. ResponseFiles="$(CompilerResponseFile)"
  98. RootNamespace="$(RootNamespace)"
  99. SdkPath="$(FrameworkPathOverride)"
  100. Sources="@(Compile)"
  101. SubsystemVersion="$(SubsystemVersion)"
  102. TargetCompactFramework="$(TargetCompactFramework)"
  103. TargetType="$(OutputType)"
  104. ToolExe="$(VbcToolExe)"
  105. ToolPath="$(VbcToolPath)"
  106. TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
  107. UseHostCompilerIfAvailable="$(UseHostCompilerIfAvailable)"
  108. UseSharedCompilation="$(UseSharedCompilation)"
  109. Utf8Output="$(Utf8Output)"
  110. VBRuntimePath="$(VBRuntimePath)"
  111. Verbosity="$(VbcVerbosity)"
  112. VsSessionGuid="$(VsSessionGuid)"
  113. WarningsAsErrors="$(WarningsAsErrors)"
  114. WarningsNotAsErrors="$(WarningsNotAsErrors)"
  115. Win32Icon="$(ApplicationIcon)"
  116. Win32Manifest="$(Win32Manifest)"
  117. Win32Resource="$(Win32Resource)"
  118. VBRuntime="$(VBRuntime)"
  119. />
  120. <ItemGroup>
  121. <_CoreCompileResourceInputs Remove="@(_CoreCompileResourceInputs)" />
  122. </ItemGroup>
  123. <CallTarget Targets="$(TargetsTriggeredByCompilation)" Condition="'$(TargetsTriggeredByCompilation)' != ''"/>
  124. </Target>
  125. </Project>