diff options
author | Katelyn Gadd <kg@luminance.org> | 2018-08-31 18:44:27 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-08-31 18:44:27 +0300 |
commit | a6a8abde09032805d91732c94306c79b3d7282d9 (patch) | |
tree | 14d8341b412aabc2144ea0817f1807df411b8ffc /mcs/class/System.Web | |
parent | 8ac5b8e5441f8f2b26b56161a4962c997872a9d2 (diff) |
Kill sln dependencies (#10406)
* Remove use of sln dependencies and use csproj project references instead
* Rewrite jay.vcxproj so it builds correctly even without help from the sln file
* Force pre-build event to run after references are resolved. Change how culevel.exe path is computed to be more resilient.
* [csproj] Update project files
Diffstat (limited to 'mcs/class/System.Web')
-rw-r--r-- | mcs/class/System.Web/System.Web.csproj | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/mcs/class/System.Web/System.Web.csproj b/mcs/class/System.Web/System.Web.csproj index 5ec776c7915..5150baecd56 100644 --- a/mcs/class/System.Web/System.Web.csproj +++ b/mcs/class/System.Web/System.Web.csproj @@ -20,11 +20,15 @@ <SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>../msfinal.pub</AssemblyOriginatorKeyFile>
</PropertyGroup>
- <!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
- Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
- is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
+ <!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
+ Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
+ is a problem to compile the Mono mscorlib.dll -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
+ <!-- Force the pre-build event to run after references have been resolved. The default
+ behavior is to run them before resolving references, which can cause things like
+ culevel.exe to be used before they have been built. -->
+ <PreBuildEventDependsOn>ResolveReferences</PreBuildEventDependsOn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Platform)' == 'net_4_x' ">
<OutputPath>./../../class/lib/net_4_x-$(HostPlatform)</OutputPath>
@@ -1485,7 +1489,6 @@ <Compile Include="System.Web\WebPageTraceListener.cs" />
<Compile Include="System.Web\WebROCollection.cs" />
<Compile Include="System.Web\XmlSiteMapProvider.cs" />
- <!--Genconsts dependency because this project includes Consts.cs-->
<ProjectReference Include="$(SolutionDir)\msvc\scripts\genconsts.csproj">
<Name>genconsts</Name>
<Project>{702AE2C0-71DD-4112-9A06-E4FABCA59986}</Project>
@@ -1493,6 +1496,13 @@ <CopyToOutputDirectory>Never</CopyToOutputDirectory>
<Private>false</Private>
</ProjectReference>
+ <ProjectReference Include="$(SolutionDir)\mcs\tools\culevel\culevel.csproj">
+ <Name>culevel</Name>
+ <Project>{E8E246BD-CD0C-4734-A3C2-7F44796EC47B}</Project>
+ <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+ <CopyToOutputDirectory>Never</CopyToOutputDirectory>
+ <Private>false</Private>
+ </ProjectReference>
</ItemGroup>
<!--End of common files-->
<!-- @ALL_SOURCES@ -->
@@ -1683,7 +1693,9 @@ </ItemGroup>
<!-- @ALL_RESOURCES@ -->
<PropertyGroup>
- <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">mono $([MSBuild]::GetDirectoryNameOfFileAbove($(TargetDir), culevel.exe))\culevel.exe -o $(ProjectDir)\System.Web\UplevelHelper.cs $(ProjectDir)\UplevelHelperDefinitions.xml</PreBuildEvent>
- <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">$([MSBuild]::GetDirectoryNameOfFileAbove($(TargetDir), culevel.exe))\culevel.exe -o $(ProjectDir)\System.Web\UplevelHelper.cs $(ProjectDir)\UplevelHelperDefinitions.xml</PreBuildEvent>
+ <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">set CULEVELPATH=$([MSBuild]::ValueOrDefault($([MSBuild]::GetDirectoryNameOfFileAbove($(TargetDir), culevel.exe)), "$(TargetDir)"))\culevel.exe
+mono %CULEVELPATH% -o $(ProjectDir)\System.Web\UplevelHelper.cs $(ProjectDir)\UplevelHelperDefinitions.xml</PreBuildEvent>
+ <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set CULEVELPATH=$([MSBuild]::ValueOrDefault($([MSBuild]::GetDirectoryNameOfFileAbove($(TargetDir), culevel.exe)), "$(TargetDir)"))\culevel.exe
+ %CULEVELPATH% -o $(ProjectDir)\System.Web\UplevelHelper.cs $(ProjectDir)\UplevelHelperDefinitions.xml</PreBuildEvent>
</PropertyGroup>
</Project>
\ No newline at end of file |