提交 29e7b536 编写于 作者: C CyrusNajmabadi

Merge branch 'master' into batchChanges

......@@ -7,57 +7,51 @@
<PropertyGroup>
<RoslynSolution Condition="'$(RoslynSolution)' == ''">$(MSBuildThisFileDirectory)Roslyn.sln</RoslynSolution>
<SamplesSolution>$(MSBuildThisFileDirectory)src\Samples\Samples.sln</SamplesSolution>
<TestVsi Condition="'$(testVsiNetCore)' == 'true'">true</TestVsi>
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<RunTestArgs Condition="'$(ManualTest)' == ''">$(RunTestArgs) -xml</RunTestArgs>
<RunTestArgs Condition="'$(Test64)' == 'true'">$(RunTestArgs) -test64</RunTestArgs>
<RunTestArgs Condition="'$(TestVsi)' == 'true'">$(RunTestArgs) -testVsi</RunTestArgs>
<RunTestArgs Condition="'$(TestVsiNetCore)' == 'true'">$(RunTestArgs) -trait:Feature=NetCore</RunTestArgs>
<RunTestArgs Condition="'$(Trait)' != ''">$(RunTestArgs) -trait:$(Trait)</RunTestArgs>
<RunTestArgs Condition="'$(NoTrait)' != ''">$(RunTestArgs) -notrait:$(NoTrait)</RunTestArgs>
<DeployExtensionViaBuild Condition="'$(DeployExtensionViaBuild)' == ''">false</DeployExtensionViaBuild>
<IncludePattern Condition="'$(IncludePattern)' == '' AND '$(TestVsi)' != 'true'">*.UnitTests.dll</IncludePattern>
<IncludePattern Condition="'$(IncludePattern)' == '' AND '$(TestVsi)' == 'true'">*.IntegrationTests.dll</IncludePattern>
<OutputDirectory>$(MSBuildThisFileDirectory)Binaries\$(Configuration)\</OutputDirectory>
<RunTestArgs>$(RunTestArgs) -log:&quot;$(OutputDirectory)\runtests.log&quot;</RunTestArgs>
<CoreClrTestDirectory>$(OutputDirectory)\CoreClrTest</CoreClrTestDirectory>
<MSBuildCommonProperties>
RestorePackages=false;
TreatWarningsAsErrors=true;
DeployExtension=false;
</MSBuildCommonProperties>
</PropertyGroup>
<Target Name="Build">
<MSBuild BuildInParallel="true"
Projects="$(RoslynSolution)"
Properties="$(MSBuildCommonProperties)"
Properties="DeployExtension=$(DeployExtensionViaBuild)"
Targets="Build" />
<MSBuild BuildInParallel="true"
Condition="'$(ManualTest)' == ''"
Projects="$(SamplesSolution)"
Properties="$(MSBuildCommonProperties)"
Properties="DeployExtension=false"
Targets="Build" />
</Target>
<Target Name="Clean">
<MSBuild BuildInParallel="true"
Projects="$(RoslynSolution)"
Properties="$(MSBuildCommonProperties)"
Targets="Clean" />
<MSBuild BuildInParallel="true"
Condition="'$(ManualTest)' == ''"
Projects="$(SamplesSolution)"
Properties="$(MSBuildCommonProperties)"
Targets="Clean" />
</Target>
<Target Name="Rebuild">
<MSBuild BuildInParallel="true"
Projects="$(RoslynSolution)"
Properties="$(MSBuildCommonProperties)"
Targets="Rebuild" />
<MSBuild BuildInParallel="true"
Condition="'$(ManualTest)' == ''"
Projects="$(SamplesSolution)"
Properties="$(MSBuildCommonProperties)"
Targets="Rebuild" />
</Target>
......@@ -115,7 +109,7 @@
</Target>
<!-- Manually deploy any VSIX required by our integration tests (https://github.com/dotnet/roslyn/issues/17456) -->
<Target Name="DeployRoslynVsix" Condition="'$(TestVsi)' == 'true'">
<Target Name="DeployRoslynVsix" Condition="'$(TestVsi)' == 'true' AND '$(DeployExtensionViaBuild)' != 'true'">
<PropertyGroup>
<VsixExpInstallerExe>$(NuGetPackageRoot)\roslyntools.microsoft.vsixexpinstaller\$(RoslynToolsMicrosoftVSIXExpInstallerVersion)\tools\VsixExpInstaller.exe</VsixExpInstallerExe>
......
......@@ -40,7 +40,7 @@ function Run-Build() {
function Run-Test() {
$proj = Join-Path $repoDir "BuildAndTest.proj"
$args = "/v:m /p:SkipCoreClr=true /p:ManualTest=true /t:Test $proj"
$args = "/v:m /p:SkipCoreClr=true /p:ManualTest=true /t:Test /p:Test32=true $proj"
if ($test64) {
$args += " /p:Test64=true"
}
......
......@@ -159,15 +159,21 @@ try {
$test64Arg = if ($test64 -and (-not $test32)) { "true" } else { "false" }
$testVsiArg = if ($testVsi) { "true" } else { "false" }
$testVsiNetCoreArg = if ($testVsiNetCore) { "true" } else { "false" }
$buildLog = Join-Path $binariesdir "Build.log"
if ($testVsiNetCore) {
Run-MSBuild /p:BootstrapBuildPath="$bootstrapDir" BuildAndTest.proj /p:Configuration=$buildConfiguration /p:Test64=$test64Arg /p:TestVsi=true /p:Trait="Feature=NetCore" /p:PathMap="$($repoDir)=q:\roslyn" /p:Feature=pdb-path-determinism /fileloggerparameters:LogFile="$buildLog"`;verbosity=diagnostic /p:DeployExtension=false /p:RoslynRuntimeIdentifier=win7-x64
}
else {
Run-MSBuild /p:BootstrapBuildPath="$bootstrapDir" BuildAndTest.proj /p:Configuration=$buildConfiguration /p:Test64=$test64Arg /p:TestVsi=$testVsiArg /p:TestDesktop=$testDesktop /p:TestCoreClr=$testCoreClr /p:PathMap="$($repoDir)=q:\roslyn" /p:Feature=pdb-path-determinism /fileloggerparameters:LogFile="$buildLog"`;verbosity=diagnostic /p:DeployExtension=false /p:RoslynRuntimeIdentifier=win7-x64
# To help the VS SDK team track down their issues around install via build temporarily
# re-enabling the build based deployment
#
# https://github.com/dotnet/roslyn/issues/17456
$deployExtensionViaBuild = $false
if ($testVsiNetCore -and ($test32 -or $test64 -or $testVsi)) {
Write-Host "The testVsiNetCore option can't be combined with other test arguments"
}
Run-MSBuild /p:BootstrapBuildPath="$bootstrapDir" BuildAndTest.proj /p:Configuration=$buildConfiguration /p:Test64=$test64Arg /p:TestVsi=$testVsiArg /p:TestDesktop=$testDesktop /p:TestCoreClr=$testCoreClr /p:TestVsiNetCore=$testVsiNetCoreArg /p:PathMap="$($repoDir)=q:\roslyn" /p:Feature=pdb-path-determinism /fileloggerparameters:LogFile="$buildLog"`;verbosity=diagnostic /p:DeployExtension=false /p:RoslynRuntimeIdentifier=win7-x64 /p:DeployExtensionViaBuild=$deployExtensionViaBuild /p:TreatWarningsAsErrors=true
exit 0
}
catch {
......
......@@ -11,7 +11,7 @@ Sample
The following demonstrates a small but complete example of a .ruleset file.
``` XML
<RuleSet Name="Project WizBang Rules">
<RuleSet Name="Project WizBang Rules"
ToolsVersion="12.0">
<Include Path="..\OtherRules.ruleset"
Action="Default" />
......@@ -20,12 +20,12 @@ The following demonstrates a small but complete example of a .ruleset file.
<Rule Id="CA1027" Action="Warning" />
<Rule Id="CA1309" Action="Error" />
<Rule Id="CA2217" Action="Warning" />
<Rules>
</Rules>
<Rules AnalyzerId="System.Runtime.InteropServices.Analyzers"
RuleNamespace="System.Runtime.InteropService.Analyzers">
<Rule Id="CA1401" Action="None" />
<Rule Id="CA2101" Action="Error" />
<Rules>
</Rules>
</RuleSet>
```
......@@ -52,7 +52,7 @@ Within MSBuild project files the rule set can be specified via the `CodeAnalysis
</PropertyGroup>
```
Note that because the rule set is specific via a *property* rather than an *item*, IDEs like Visual Studio will not show the rule set as a file in your project by default. For this reason it is common to explicitly include the file as an item as well:
Note that because the rule set is specified via a *property* rather than an *item*, IDEs like Visual Studio will not show the rule set as a file in your project by default. For this reason it is common to explicitly include the file as an item as well:
``` XML
<ItemGroup>
<None Include="ProjectRules.ruleset" />
......
......@@ -402,6 +402,7 @@ private void LowerConstantValueDecision(DecisionTree.ByValue byValue)
{
var loweredRight = kv.Key;
var loweredLeft = kv.Value;
loweredRight = _factory.Convert(loweredLeft.Type, loweredRight);
addBindings.Add(_factory.ExpressionStatement(
_localRewriter.MakeStaticAssignmentOperator(
_factory.Syntax, loweredLeft, loweredRight, RefKind.None, loweredLeft.Type, false)));
......
......@@ -1104,6 +1104,7 @@ public BoundExpression Convert(TypeSymbol type, BoundExpression arg)
{
HashSet<DiagnosticInfo> useSiteDiagnostics = null;
Conversion c = Compilation.Conversions.ClassifyConversionFromExpression(arg, type, ref useSiteDiagnostics);
Debug.Assert(c.Exists);
Debug.Assert(useSiteDiagnostics.IsNullOrEmpty());
// If this happens, we should probably check if the method has ObsoleteAttribute.
......
......@@ -38,7 +38,7 @@
<MSBuild Projects="$(RepoRoot)src\NuGet\NuGet.proj" />
<MSBuild Projects="$(RepoRoot)src\Setup\SetupStep2.proj" Properties="$(SetupStep2Properties);DeployExtension=false" />
<MSBuild Projects="$(RepoRoot)BuildAndTest.proj" Targets="Test" Condition="'$(SkipTest)' != 'true'" Properties="SkipCoreClrTests=true" />
<MSBuild Projects="$(RepoRoot)BuildAndTest.proj" Targets="Test" Condition="'$(SkipTest)' != 'true'" Properties="Test32=true" />
<Exec Command="powershell -noprofile -executionPolicy ByPass -file $(MSBuildThisFileDirectory)..\..\..\build\scripts\check-toolset-insertion.ps1 &quot;$(MSBuildThisFileDirectory)..\..\..&quot; &quot;$(BinariesPath)&quot;" />
......
......@@ -37,7 +37,7 @@ internal partial class SQLitePersistentStorage
if (_flushAllTask == null)
{
var token = _shutdownTokenSource.Token;
var delay =
_flushAllTask =
Task.Delay(FlushAllDelayMS, token)
.ContinueWith(
async _ => await FlushAllPendingWritesAsync(token).ConfigureAwait(false),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册