Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging recent dev15.7.x to features/custom-fixed #25695

Merged
merged 114 commits into from
Mar 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
1099ebc
Add names to code refactoring providers which don't have one
Therzok Mar 17, 2018
ce44aa7
Move the listener/waiter test hooks to the workspaces layer
sharwell Mar 17, 2018
05cceb8
Cancel pending asynchronous operations when IdleProcessor stops
sharwell Mar 17, 2018
f96951c
PR feedback
Therzok Mar 17, 2018
747ef31
Extract interface ISerializer from Serializer
sharwell Mar 17, 2018
d43ad9b
Convert ISerializer to workspace service ISerializerService
sharwell Mar 17, 2018
f80ac92
Add service creation hooks for HostServices implementations
sharwell Mar 17, 2018
805e6fa
Avoid possible MEF composition in Workspace.Dispose
sharwell Mar 17, 2018
ece3115
Make AssetService.s_serializer a per-instance field
sharwell Mar 17, 2018
d07ec18
Make PrimaryWorkspace a MEF component instead of static
sharwell Mar 18, 2018
f12bda8
Make SolutionService.PrimaryWorkspace a per-instance property
sharwell Mar 18, 2018
16d1f39
Move all build diagnostic info into Logs dir
jaredpar Mar 19, 2018
13da868
Fix bad merge
jaredpar Mar 19, 2018
635fdb8
Merge pull request #25596 from jaredpar/fix-dumps
jaredpar Mar 19, 2018
37a1d2c
Add the ability to hook RoslynServices.HostServices during testing
sharwell Mar 19, 2018
1419a34
Raise WorkspaceChanged with a new SourceText even if we have a new sn…
jasonmalinowski Mar 20, 2018
878f075
Merge remote-tracking branch 'dotnet/dev15.6.x' into fix-merge
jaredpar Mar 20, 2018
c56fc20
Merge pull request #25613 from dotnet/merges/dev15.6.x-to-dev15.7.x
jaredpar Mar 20, 2018
e19dbad
Move xunit output to diagnostic log folder
jaredpar Mar 20, 2018
8e9a9f3
Remove DevDivInsertionFiles.sln
jaredpar Mar 20, 2018
a3d3b85
Restore generates binary log on Windows
jaredpar Mar 20, 2018
0762ad4
Restore generates binary logs on Unix
jaredpar Mar 20, 2018
7053461
Remove buildAll option
jaredpar Mar 20, 2018
0fe0a93
Get dump file on stack overflow
jaredpar Mar 20, 2018
554eedb
Fix PR issues
jaredpar Mar 20, 2018
17e1f5a
Add unit test leg on ES image
jaredpar Mar 20, 2018
ca15a20
Merge remote-tracking branch 'dotnet/dev15.7.x' into export-provider
sharwell Mar 20, 2018
9c28f4a
Cleanup from code review feedback
sharwell Mar 20, 2018
6d28b06
PR updates
jaredpar Mar 20, 2018
4924d70
Place ITextBufferCloneService in ITextBuffer.Properties instead of se…
sharwell Mar 20, 2018
11a994c
Merge pull request #25621 from jaredpar/fix-it
jaredpar Mar 20, 2018
3a9dddd
Move desktop bootstrap to use NuPkg
jaredpar Mar 12, 2018
8eb6704
Moved bootstrap on CoreClr Windows to NuPkg
jaredpar Mar 12, 2018
e7f120f
Move Unix bootstrap to NuPkg
jaredpar Mar 13, 2018
ff394cf
Fixed a typo
jaredpar Mar 13, 2018
4700f71
Fix non-debug bootstrap builds
jaredpar Mar 13, 2018
f0c450f
Fix release coreclr builds
jaredpar Mar 13, 2018
9df5155
Centralize on Run-MSBuild
jaredpar Mar 13, 2018
3a72604
Fix casing issue
jaredpar Mar 14, 2018
0a20b62
Fix permission issue
jaredpar Mar 14, 2018
331056f
Use single Import for toolset props file
jaredpar Mar 15, 2018
5385c8d
Fix unix path
jaredpar Mar 15, 2018
023c680
Fix nested directory issue
jaredpar Mar 15, 2018
90fe170
Respond to PR feedback
jaredpar Mar 15, 2018
8124b00
Fix casing issue on unix
jaredpar Mar 16, 2018
5f77c7a
Fix Unix casing issue
jaredpar Mar 19, 2018
7b31143
Fix unzip on Mono docker file
jaredpar Mar 20, 2018
57d44b7
Merge pull request #25629 from jaredpar/fix-image
jaredpar Mar 20, 2018
ad3dd0a
Cancel pending operations in SyntacticClassificationTaggerProvider on…
sharwell Mar 20, 2018
fdccb9b
Cancel pending operations in AbstractAsynchronousTaggerProvider on di…
sharwell Mar 20, 2018
e5c4f7f
Add ForegroundNotificationService.ReleaseCancelledItems to immediatel…
sharwell Mar 20, 2018
4afff3b
Merge pull request #25440 from jaredpar/fix-bootstrap
jaredpar Mar 20, 2018
95cd555
Merge pull request #25620 from sharwell/cancel-on-dispose
sharwell Mar 20, 2018
c118f48
Merge Roslyn.Test.Utilities.Traits with Microsoft.CodeAnalysis.Test.U…
sharwell Mar 19, 2018
e260ae6
Support GotoDefinition in LINQ query syntax (#23049)
MaStr11 Mar 21, 2018
681311f
Merge pull request #25553 from Therzok/code-refactoring-names
sharwell Mar 21, 2018
d1087ee
Re-enable integration tests against the newer image
jasonmalinowski Mar 21, 2018
17ae0e0
Simplify conditional check
jasonmalinowski Mar 21, 2018
34e7637
Merge pull request #25653 from jasonmalinowski/reenable-integration-t…
jasonmalinowski Mar 21, 2018
4d53fe9
Rev packages from beta2 to beta3
tmeschter Mar 21, 2018
f898c4d
Merge pull request #25657 from tmeschter/BumpPackageBeta
jasonmalinowski Mar 21, 2018
e8269dc
Merge pull request #25643 from sharwell/merge-traits
sharwell Mar 21, 2018
86067f2
Test EnC on expression variables in initializers and queries (#25438)
jcouv Mar 21, 2018
f077ea1
Initial work to support converting a for-statement to a foreach.
CyrusNajmabadi Mar 14, 2018
5cdef61
Fix syntax checks.
CyrusNajmabadi Mar 14, 2018
3651f4f
Simplify.
CyrusNajmabadi Mar 14, 2018
f2f9d20
Extract helper for generating local names.
CyrusNajmabadi Mar 14, 2018
352c4fd
Add VB impl.
CyrusNajmabadi Mar 14, 2018
a77a7e6
Add foreach cast if the types of the indexer and enumerator differ.
CyrusNajmabadi Mar 14, 2018
8e85f4c
Simplify.'
CyrusNajmabadi Mar 14, 2018
cdbaa80
Indentation.
CyrusNajmabadi Mar 14, 2018
566d229
Cleanup.
CyrusNajmabadi Mar 14, 2018
741e0c1
Update comment.
CyrusNajmabadi Mar 14, 2018
64c4805
Cleanup.
CyrusNajmabadi Mar 14, 2018
30d1949
Add test
CyrusNajmabadi Mar 14, 2018
e146979
Add tests.
CyrusNajmabadi Mar 14, 2018
c6fc854
Add tests.
CyrusNajmabadi Mar 14, 2018
e771fb0
Add tests.
CyrusNajmabadi Mar 14, 2018
11fef37
Add tests.
CyrusNajmabadi Mar 14, 2018
9150586
Add tests.
CyrusNajmabadi Mar 14, 2018
32c3970
Add tests.
CyrusNajmabadi Mar 14, 2018
70eb5cd
Add tests.
CyrusNajmabadi Mar 14, 2018
b8539ff
Add tests.
CyrusNajmabadi Mar 14, 2018
30192b3
Simplify.
CyrusNajmabadi Mar 14, 2018
6f65b76
Simplify.
CyrusNajmabadi Mar 14, 2018
ee1a582
Rename param.
CyrusNajmabadi Mar 14, 2018
157b41e
Move into its own file.
CyrusNajmabadi Mar 14, 2018
4eb9ff1
Add vb tests.
CyrusNajmabadi Mar 15, 2018
8244abe
Suppress refactoring if writing outside loop.
CyrusNajmabadi Mar 15, 2018
b34c881
Add tests.
CyrusNajmabadi Mar 15, 2018
28ea7b7
Add tests.
CyrusNajmabadi Mar 15, 2018
0209e83
Fix typo.
CyrusNajmabadi Mar 15, 2018
08f130f
Fix typo.
CyrusNajmabadi Mar 15, 2018
475e368
Finish comment.
CyrusNajmabadi Mar 15, 2018
aa32740
Make lowercase.
CyrusNajmabadi Mar 15, 2018
8c44994
Add error if variable crosses function boundary.
CyrusNajmabadi Mar 15, 2018
471f10c
Make methods static.
CyrusNajmabadi Mar 15, 2018
df7d6a2
Spelling
CyrusNajmabadi Mar 15, 2018
d76b5cc
Spelling.
CyrusNajmabadi Mar 15, 2018
adde546
Add test.
CyrusNajmabadi Mar 15, 2018
27e7e3c
Added test.
CyrusNajmabadi Mar 15, 2018
7717dd6
Spacing.
CyrusNajmabadi Mar 15, 2018
4b1d83f
Make sure we handle jagged/multidimensional types properly.
CyrusNajmabadi Mar 19, 2018
a995d4a
Only support the refactoring in approved positions.
CyrusNajmabadi Mar 19, 2018
ae380d7
Add tests.
CyrusNajmabadi Mar 19, 2018
fb6a440
Moving local.
CyrusNajmabadi Mar 21, 2018
ec12ac4
Fix traits
CyrusNajmabadi Mar 22, 2018
414221e
Use IOperation check.
CyrusNajmabadi Mar 22, 2018
d833c69
Add checks for unexpected usages of hte collection.
CyrusNajmabadi Mar 22, 2018
0fb504f
Fix tests with incorrect baselines.
CyrusNajmabadi Mar 22, 2018
905b2ba
Fix tests with incorrect baselines.
CyrusNajmabadi Mar 22, 2018
c0bef8d
Merge pull request #25558 from sharwell/export-provider
sharwell Mar 23, 2018
0b35308
Merge pull request #25469 from CyrusNajmabadi/convertForToForEach
jinujoseph Mar 23, 2018
1be2001
Merge remote-tracking branch 'upstream/dev15.7.x' into fixedMerge01
VSadov Mar 23, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions Roslyn.sln
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Pool
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevDivPackagesDebugger", "src\Setup\DevDivPackages\Debugger\DevDivPackagesDebugger.csproj", "{18BDB5D5-340B-4834-B4FC-0327729A4A26}"
EndProject
Project("{778DAE3C-4631-46EA-AA77-85C1314464D9}") = "DevDivInsertionFiles", "src\Setup\DevDivInsertionFiles\DevDivInsertionFiles.vbproj", "{5FE910A9-E7C9-40E1-AAF1-6C6C7DD61B67}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
src\Compilers\VisualBasic\BasicAnalyzerDriver\BasicAnalyzerDriver.projitems*{2523d0e6-df32-4a3e-8ae0-a19bffae2ef6}*SharedItemsImports = 4
Expand Down Expand Up @@ -956,6 +958,10 @@ Global
{18BDB5D5-340B-4834-B4FC-0327729A4A26}.Debug|Any CPU.Build.0 = Debug|Any CPU
{18BDB5D5-340B-4834-B4FC-0327729A4A26}.Release|Any CPU.ActiveCfg = Release|Any CPU
{18BDB5D5-340B-4834-B4FC-0327729A4A26}.Release|Any CPU.Build.0 = Release|Any CPU
{5FE910A9-E7C9-40E1-AAF1-6C6C7DD61B67}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5FE910A9-E7C9-40E1-AAF1-6C6C7DD61B67}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5FE910A9-E7C9-40E1-AAF1-6C6C7DD61B67}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5FE910A9-E7C9-40E1-AAF1-6C6C7DD61B67}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -1126,6 +1132,7 @@ Global
{FC2AE90B-2E4B-4045-9FDD-73D4F5ED6C89} = {C2D1346B-9665-4150-B644-075CF1636BAA}
{49E7C367-181B-499C-AC2E-8E17C81418D6} = {C2D1346B-9665-4150-B644-075CF1636BAA}
{18BDB5D5-340B-4834-B4FC-0327729A4A26} = {C2D1346B-9665-4150-B644-075CF1636BAA}
{5FE910A9-E7C9-40E1-AAF1-6C6C7DD61B67} = {FD0FAF5F-1DED-485C-99FA-84B97F3A8EEC}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {604E6B91-7BC0-4126-AE07-D4D2FEFC3D29}
Expand Down
35 changes: 27 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ usage()
root_path="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
binaries_path="${root_path}"/Binaries
bootstrap_path="${binaries_path}"/Bootstrap
bootstrap_framework=netcoreapp2.0

args=
build_in_docker=false
Expand Down Expand Up @@ -104,6 +103,12 @@ do
shift
done

config_path=${binaries_path}/${build_configuration}
logs_path=${config_path}/Logs
mkdir -p ${binaries_path}
mkdir -p ${config_path}
mkdir -p ${logs_path}

if [[ "$build_in_docker" = true ]]
then
echo "Docker exec: $args"
Expand All @@ -115,19 +120,33 @@ source "${root_path}"/build/scripts/obtain_dotnet.sh

if [[ "$restore" == true ]]
then
"${root_path}"/build/scripts/restore.sh
echo "Restoring RoslynToolset.csproj"
dotnet restore "${root_path}/build/ToolsetPackages/RoslynToolset.csproj" /bl:${logs_path}/Restore-RoslynToolset.binlog
echo "Restoring Compilers.sln"
dotnet restore "${root_path}/Compilers.sln" /bl:${logs_path}/Restore-Compilers.binlog
fi

build_args="--no-restore -c ${build_configuration} /nologo /maxcpucount:1"
build_args="--no-restore -c ${build_configuration} /nologo"

if [[ "$build_bootstrap" == true ]]
then
echo "Building bootstrap toolset"
bootstrap_build_args="${build_args} /p:UseShippingAssemblyVersion=true /p:InitialDefineConstants=BOOTSTRAP"
dotnet publish "${root_path}"/src/Compilers/CSharp/csc -o "${bootstrap_path}/bincore" --framework ${bootstrap_framework} ${bootstrap_build_args} "/bl:${binaries_path}/BootstrapCsc.binlog"
dotnet publish "${root_path}"/src/Compilers/VisualBasic/vbc -o "${bootstrap_path}/bincore" --framework ${bootstrap_framework} ${bootstrap_build_args} "/bl:${binaries_path}/BootstrapVbc.binlog"
dotnet publish "${root_path}"/src/Compilers/Server/VBCSCompiler -o "${bootstrap_path}/bincore" --framework ${bootstrap_framework} ${bootstrap_build_args} "/bl:${binaries_path}/BootstrapVBCSCompiler.binlog"
dotnet publish "${root_path}"/src/Compilers/Core/MSBuildTask -o "${bootstrap_path}" --framework ${bootstrap_framework} ${bootstrap_build_args} "/bl:${binaries_path}/BoostrapMSBuildTask.binlog"
bootstrap_files=( 'src/Compilers/CSharp/csc/csc.csproj' 'src/Compilers/VisualBasic/vbc/vbc.csproj' 'src/Compilers/Server/VBCSCompiler/VBCSCompiler.csproj' 'src/Compilers/Core/MSBuildTask/MSBuildTask.csproj')
for bootstrap_file in "${bootstrap_files[@]}"
do
bootstrap_name=$(basename $bootstrap_file)
dotnet publish "${bootstrap_file}" --framework netcoreapp2.0 ${bootstrap_build_args} "/bl:${binaries_path}/${bootstrap_name}.binlog"
done

rm -rf ${bootstrap_path}
mkdir -p ${bootstrap_path}
dotnet pack src/NuGet/Bootstrap.csproj /p:NuspecBasePath=${binaries_path}/Debug -o ${bootstrap_path}
mkdir -p ${bootstrap_path}/microsoft.netcore.compilers
unzip ${bootstrap_path}/Microsoft.NETCore.Compilers.42.42.42.42-bootstrap.nupkg -d ${bootstrap_path}/microsoft.netcore.compilers/42.42.42.42
chmod -R 755 ${bootstrap_path}/microsoft.netcore.compilers

dotnet clean Compilers.sln
fi

if [[ "${use_bootstrap}" == true ]]
Expand All @@ -153,7 +172,7 @@ then
if [[ "${use_bootstrap}" == true ]]
then
echo "Stopping VBCSCompiler"
dotnet "${bootstrap_path}"/bincore/VBCSCompiler.dll -shutdown
dotnet "${bootstrap_path}"/microsoft.netcore.compilers/42.42.42.42/tools/bincore/VBCSCompiler.dll -shutdown
else
echo "--stop-vbcscompiler requires --use-bootstrap. Aborting."
exit 1
Expand Down
6 changes: 3 additions & 3 deletions build/Targets/Imports.targets
Original file line number Diff line number Diff line change
Expand Up @@ -300,16 +300,16 @@
</PropertyGroup>

<Target Name="RestoreToolsetCheck" Condition="'$(BuildingProject)' == 'true'">
<Error Text="Toolset packages have not been restored, run Restore.cmd before building"
Condition="!Exists('$(ToolsetCompilerPropsFilePath)')" />
<Error Text="Toolset packages have not been restored, run Restore.cmd before building. Expected '$(RoslynToolsetPropsFilePath)' to exist."
Condition="!Exists('$(RoslynToolsetPropsFilePath)')" />
<Error Text="Analyzer packages have not been restored, run Restore.cmd before building. File not found: '$(RoslynDiagnosticsPropsFilePath)'"
Condition="!Exists('$(RoslynDiagnosticsPropsFilePath)')" />
</Target>

<Target Name="CheckBootstrapState"
Condition="'$(BootstrapBuildPath)' != ''"
AfterTargets="CoreCompile">
<ValidateBootstrap BootstrapPath="$(BootstrapBuildPath)" />
<ValidateBootstrap BootstrapPath="$(RoslynToolsetDirectory)" />
</Target>

<!--
Expand Down
39 changes: 15 additions & 24 deletions build/Targets/Settings.props
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@
<IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)</IntermediateOutputPath>
<ArtifactsSymStoreDirectory Condition="'$(DeveloperBuild)' != 'true' and '$(OS)' == 'Windows_NT'">$(BaseOutputPath)$(Configuration)\SymStore\</ArtifactsSymStoreDirectory>

<ToolsetPackagesSemaphore>$(ToolsetPackagesDir)toolsetpackages.semaphore</ToolsetPackagesSemaphore>
<ToolsetCompilerPackageName Condition="'$(MSBuildRuntimeType)' != 'Core'">Microsoft.Net.Compilers</ToolsetCompilerPackageName>
<ToolsetCompilerPackageName Condition="'$(MSBuildRuntimeType)' == 'Core'">Microsoft.NETCore.Compilers</ToolsetCompilerPackageName>
<ToolsetCompilerPackageVersion Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MicrosoftNetCompilersVersion)</ToolsetCompilerPackageVersion>
<ToolsetCompilerPackageVersion Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MicrosoftNETCoreCompilersVersion)</ToolsetCompilerPackageVersion>
<ToolsetCompilerPropsFilePath>$(NuGetPackageRoot)/$(ToolsetCompilerPackageName.ToLower())/$(ToolsetCompilerPackageVersion)/build/$(ToolsetCompilerPackageName).props</ToolsetCompilerPropsFilePath>
<TargetFrameworkRootPath>$(NuGetPackageRoot)\roslyntools.referenceassemblies\$(RoslynToolsReferenceAssembliesVersion)\tools\framework</TargetFrameworkRootPath>

<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>
Expand Down Expand Up @@ -169,6 +163,19 @@
<CustomAfterMicrosoftCommonTargets>$(MSBuildThisFileDirectory)\AfterCommonTargets.targets</CustomAfterMicrosoftCommonTargets>
</PropertyGroup>

<!-- Determine compiler toolset props file to use for this build -->
<PropertyGroup>
<_PackageName Condition="'$(MSBuildRuntimeType)' != 'Core'">Microsoft.Net.Compilers</_PackageName>
<_PackageName Condition="'$(MSBuildRuntimeType)' == 'Core'">Microsoft.NETCore.Compilers</_PackageName>
<_PackageVersion Condition="'$(MSBuildRuntimeType)' != 'Core' AND '$(BootstrapBuildPath)' == ''">$(MicrosoftNetCompilersVersion)</_PackageVersion>
<_PackageVersion Condition="'$(MSBuildRuntimeType)' == 'Core' AND '$(BootstrapBuildPath)' == ''">$(MicrosoftNETCoreCompilersVersion)</_PackageVersion>
<_PackageVersion Condition="'$(BootstrapBuildPath)' != ''">42.42.42.42</_PackageVersion>
<_PackageRoot>$(NuGetPackageRoot)</_PackageRoot>
<_PackageRoot Condition="'$(BootstrapBuildPath)' != ''">$(BootstrapBuildPath)</_PackageRoot>
<RoslynToolsetDirectory>$(_PackageRoot)\$(_PackageName.ToLower())\$(_PackageVersion)</RoslynToolsetDirectory>
<RoslynToolsetPropsFilePath>$(RoslynToolsetDirectory)\build\$(_PackageName).props</RoslynToolsetPropsFilePath>
</PropertyGroup>

<!-- Windows specific settings -->
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">

Expand All @@ -189,24 +196,10 @@
<DevEnvDir>$([System.IO.Path]::GetFullPath('$(DevEnvDir)'))</DevEnvDir>
</PropertyGroup>

<PropertyGroup Condition="'$(BootstrapBuildPath)' != ''">
<CSharpCoreTargetsPath>$(BootstrapBuildPath)\Microsoft.CSharp.Core.targets</CSharpCoreTargetsPath>
<VisualBasicCoreTargetsPath>$(BootstrapBuildPath)\Microsoft.VisualBasic.Core.targets</VisualBasicCoreTargetsPath>
</PropertyGroup>
<Import Project="$(RoslynToolsetPropsFilePath)" Condition="Exists('$(RoslynToolsetPropsFilePath)')" />

<!-- During bootstrap builds it's important to load our bootstrap tasks before doing any
other imports (which could load a same named DLL) -->
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.Csc"
AssemblyFile="$(BootstrapBuildPath)\Microsoft.Build.Tasks.CodeAnalysis.dll"
Condition="'$(BootstrapBuildPath)' != ''" />
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.Vbc"
AssemblyFile="$(BootstrapBuildPath)\Microsoft.Build.Tasks.CodeAnalysis.dll"
Condition="'$(BootstrapBuildPath)' != ''" />
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.ValidateBootstrap"
AssemblyFile="$(BootstrapBuildPath)\Microsoft.Build.Tasks.CodeAnalysis.dll"
Condition="'$(BootstrapBuildPath)' != ''" />
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.CopyRefAssembly"
AssemblyFile="$(BootstrapBuildPath)\Microsoft.Build.Tasks.CodeAnalysis.dll"
AssemblyFile="$(RoslynToolsetDirectory)\tools\Microsoft.Build.Tasks.CodeAnalysis.dll"
Condition="'$(BootstrapBuildPath)' != ''" />
<UsingTask TaskName="Roslyn.MSBuild.Util.FindNuGetAssetsForVsix"
AssemblyFile="$(NuGetPackageRoot)\Roslyn.Build.Util\$(RoslynBuildUtilVersion)\lib\net46\Roslyn.MSBuild.Util.dll"
Expand All @@ -223,8 +216,6 @@
Condition="Exists('$(NuGetPackageRoot)\Microsoft.VSSDK.BuildTools\$(VisualStudioBuildToolsVersion)\build\Microsoft.VsSDK.BuildTools.props')" />
</ImportGroup>

<Import Project="$(ToolsetCompilerPropsFilePath)" Condition="Exists('$(ToolsetCompilerPropsFilePath)') AND '$(BootstrapBuildPath)' == ''" />

<!--
When building WPF projects MSBuild will create a temporary project with an extension of
tmp_proj. In that case the SDK is unable to determine the target language and cannot pick
Expand Down
2 changes: 1 addition & 1 deletion build/Targets/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<!-- The release moniker for our packages. Developers should use "dev" and official builds pick the branch
moniker listed below -->
<RoslynNuGetMoniker Condition="'$(RoslynNuGetMoniker)' == ''">dev</RoslynNuGetMoniker>
<RoslynNuGetMoniker Condition="'$(OfficialBuild)' == 'true'">beta2</RoslynNuGetMoniker>
<RoslynNuGetMoniker Condition="'$(OfficialBuild)' == 'true'">beta3</RoslynNuGetMoniker>

<!-- This is the base of the NuGet versioning for prerelease packages -->
<NuGetPreReleaseVersion>$(RoslynFileVersionBase)-$(RoslynNuGetMoniker)</NuGetPreReleaseVersion>
Expand Down
37 changes: 8 additions & 29 deletions build/scripts/build-utils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -414,45 +414,24 @@ function Clear-PackageCache() {
}

# Restore a single project
function Restore-Project([string]$dotnetExe, [string]$projectFileName) {
function Restore-Project([string]$dotnetExe, [string]$projectFileName, [string]$logFilePath = "") {
$nugetConfig = Join-Path $repoDir "nuget.config"

$projectFilePath = $projectFileName
if (-not (Test-Path $projectFilePath)) {
$projectFilePath = Join-Path $repoDir $projectFileName
}

Exec-Console $dotnet "restore --verbosity quiet --configfile $nugetConfig $projectFilePath"
}

# Restore all of the projects that the repo consumes
function Restore-Packages([string]$dotnetExe = "", [string]$project = "") {
if ($dotnetExe -eq "") {
$dotnetExe = Ensure-DotnetSdk
$logArg = ""
if ($logFilePath -ne "") {
$logArg = " /bl:$logFilePath"
}

Write-Host "Restore using dotnet at $dotnetExe"

if ($project -ne "") {
Write-Host "Restoring project $project"
Restore-Project $dotnetExe $project
}
else {
$all = @(
"Roslyn Toolset:build\ToolsetPackages\RoslynToolset.csproj",
"Roslyn:Roslyn.sln",
"DevDivInsertionFiles:src\Setup\DevDivInsertionFiles\DevDivInsertionFiles.sln")

foreach ($cur in $all) {
$both = $cur.Split(':')
Write-Host "Restoring $($both[0])"
Restore-Project $dotnetExe $both[1]
}
}
Exec-Console $dotnet "restore --verbosity quiet --configfile $nugetConfig $projectFilePath $logArg"
}

# Restore all of the projects that the repo consumes
function Restore-All([string]$dotnetExe = "") {
Restore-Packages -dotnetExe $dotnetExe
function Unzip-File([string]$zipFilePath, [string]$outputDir) {
Add-Type -AssemblyName System.IO.Compression.FileSystem | Out-Null
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipFilePath, $outputDir)
}

Loading