This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Manually update the dependencies.props and move S.P.Corelib to use LangVersion=8.0 #22452
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0e591a0
Update BuildTools to preview1-03713-01 (master)
tannergooding e3ba8bc
Updating CoreCLR to use LangVersion=8.0
tannergooding 149bafb
Moving the Windows scripts to default to `dotnet msbuild` for managed…
tannergooding 241e23f
Setting UseSharedCompilation=true
tannergooding cafe252
Changing some additional callsites that were using msbuild to use dot…
tannergooding 4e05df6
Revert packages.builds to use Desktop msbuild on Windows
tannergooding c230fea
Fixing runtest.cmd to always set DotNetCli
tannergooding File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.0-preview1-03617-02 | ||
3.0.0-preview1-03713-01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
|
||
<Import Project="dir.common.props" /> | ||
|
||
<PropertyGroup> | ||
<LangVersion>8.0</LangVersion> | ||
<UseSharedCompilation>true</UseSharedCompilation> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pushed a commit setting When using a non-toolset compiler this is the default, but for Toolset builds the reverse is true and this is disabled. This should speed up the build and avoid the timeout that was getting hit. |
||
</PropertyGroup> | ||
|
||
<!-- | ||
$(OS) is set to Unix/Windows_NT. This comes from an environment variable on Windows and MSBuild on Unix. | ||
--> | ||
|
@@ -24,19 +29,13 @@ | |
<MinorVersion>6</MinorVersion> | ||
</PropertyGroup> | ||
|
||
<!-- Build Tools Versions --> | ||
<PropertyGroup> | ||
<RoslynVersion>1.0.0-rc3-20150510-01</RoslynVersion> | ||
<RoslynPackageName>Microsoft.Net.ToolsetCompilers</RoslynPackageName> | ||
</PropertyGroup> | ||
|
||
<!-- | ||
Switching to the .NET Core version of the BuildTools tasks seems to break numerous scenarios, such as VS intellisense and resource designer | ||
as well as running the build on mono. Until we can get these sorted out we will continue using the .NET 4.5 version of the tasks. | ||
--> | ||
<PropertyGroup> | ||
<RunningOnCore>false</RunningOnCore> | ||
<RunningOnCore Condition="'$(MSBuildRuntimeType)' == 'Core'">true</RunningOnCore> | ||
<RunningOnCore Condition="'$(MSBuildRuntimeType)' == 'core'">true</RunningOnCore> | ||
<BuildToolsTargetsDesktop>false</BuildToolsTargetsDesktop> | ||
<BuildToolsTargetsDesktop Condition="'$(RunningOnCore)' != 'true'">true</BuildToolsTargetsDesktop> | ||
<BuildToolsTargets45>$(BuildToolsTargetsDesktop)</BuildToolsTargets45> | ||
|
@@ -145,10 +144,10 @@ | |
|
||
<ProjectUrl>https://dot.net</ProjectUrl> | ||
|
||
<!-- On Windows, MSbuild still runs against Desktop FX while it runs on .NET Core on non-Windows. this requires | ||
<!-- On Windows, MSbuild can still run against Desktop FX while it runs on .NET Core on non-Windows. this requires | ||
pulling in different packaging dependencies. | ||
--> | ||
<PackagingTaskDir Condition="'$(TargetsWindows)' == 'true'">$(ToolsDir)net46/</PackagingTaskDir> | ||
<PackagingTaskDir Condition="'$(MSBuildRuntimeType)' != 'core'">$(ToolsDir)net46/</PackagingTaskDir> | ||
<!-- defined in buildtools packaging.targets, but we need this before targets are imported --> | ||
<PackagePlatform Condition="'$(PackagePlatform)' == ''">$(Platform)</PackagePlatform> | ||
<PackagePlatform Condition="'$(PackagePlatform)' == 'amd64'">x64</PackagePlatform> | ||
|
@@ -187,6 +186,5 @@ | |
</ItemGroup> | ||
|
||
<!-- Use Roslyn Compilers to build --> | ||
<Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'!='true' and Exists('$(RoslynPropsFile)') and '$(UseRoslynCompilers)'!='false' and '$(RoslynIncompatibleMsbuildVersion)' != 'true'" /> | ||
<Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'=='true' and Exists('$(RoslynPropsFile)') and '$(RoslynIncompatibleMsbuildVersion)' != 'true'" /> | ||
<Import Project="$(RoslynPropsFile)" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@if not defined _echo @echo off | ||
setlocal | ||
|
||
set "__ProjectDir=%~dp0" | ||
|
||
call "%__ProjectDir%"\setup_vs_tools.cmd | ||
|
||
REM setup_vs_tools.cmd will correctly echo error message. | ||
if NOT '%ERRORLEVEL%' == '0' exit /b 1 | ||
|
||
:: Clear the 'Platform' env variable for this session, as it's a per-project setting within the build, and | ||
:: misleading value (such as 'MCD' in HP PCs) may lead to build breakage (issue: #69). | ||
set Platform= | ||
set __ProjectDir= | ||
|
||
:: Restore the Tools directory | ||
call %~dp0init-tools.cmd | ||
if NOT [%ERRORLEVEL%]==[0] ( | ||
exit /b 1 | ||
) | ||
|
||
pushd %~dp0 | ||
echo Running: dotnet %* | ||
call "%~dp0\Tools\dotnetcli\dotnet.exe" %* | ||
popd | ||
if NOT [%ERRORLEVEL%]==[0] ( | ||
exit /b 1 | ||
) | ||
|
||
exit /b 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to move the
LangVersion
definition to here andtests\dir.props
, since those are the only things that actually import$(RoslynPropsFile)
.I think it would be nice to get this cleaned up (and using
Directory.Build.props
, etc). But that is a more complicated change and should be done separately. Doing so would allow this logic to be centrally managed, rather than duplicated in multiple places.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, that would be part of "Arcade migration".