[main] Enable razor-compiler and format in Source-Build (#13844)
This commit is contained in:
parent
b5ea32ce9e
commit
2ada9250a8
3 changed files with 53 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
|||
<!-- Tier 1 -->
|
||||
<RepositoryReference Include="command-line-api" />
|
||||
<RepositoryReference Include="diagnostics" />
|
||||
<!-- <RepositoryReference Include="razor-compiler" /> -->
|
||||
<RepositoryReference Include="razor-compiler" />
|
||||
<RepositoryReference Include="roslyn" />
|
||||
<RepositoryReference Include="source-build-externals" />
|
||||
<RepositoryReference Include="symreader" />
|
||||
|
@ -52,7 +52,7 @@
|
|||
<!-- Tier 4 -->
|
||||
<RepositoryReference Include="aspnetcore" />
|
||||
<RepositoryReference Include="deployment-tools" />
|
||||
<!-- <RepositoryReference Include="format" /> -->
|
||||
<RepositoryReference Include="format" />
|
||||
<RepositoryReference Include="nuget-client" />
|
||||
<RepositoryReference Include="templating" />
|
||||
<RepositoryReference Include="test-templates" />
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Logan Bussell <loganbussell@microsoft.com>
|
||||
Date: Mon, 16 May 2022 16:29:43 -0700
|
||||
Subject: [PATCH] Update nullability constraints for BeginScope in
|
||||
SimpleConsoleLogger
|
||||
|
||||
Remove when issue is closed: https://github.com/dotnet/format/issues/1609
|
||||
|
||||
---
|
||||
src/Logging/SimpleConsoleLogger.cs | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/Logging/SimpleConsoleLogger.cs b/src/Logging/SimpleConsoleLogger.cs
|
||||
index fd8015c..2971595 100644
|
||||
--- a/src/Logging/SimpleConsoleLogger.cs
|
||||
+++ b/src/Logging/SimpleConsoleLogger.cs
|
||||
@@ -64,7 +64,7 @@ public bool IsEnabled(LogLevel logLevel)
|
||||
return (int)logLevel >= (int)_minimalLogLevel;
|
||||
}
|
||||
|
||||
- public IDisposable BeginScope<TState>(TState state)
|
||||
+ public IDisposable? BeginScope<TState>(TState state) where TState : notnull
|
||||
{
|
||||
return NullScope.Instance;
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Logan Bussell <loganbussell@microsoft.com>
|
||||
Date: Fri, 13 May 2022 16:14:14 -0700
|
||||
Subject: [PATCH] Add NoWarn for NU1507
|
||||
|
||||
This warning occurs when using NuGet central package management without defining
|
||||
any Package Source Mappings.
|
||||
|
||||
Remove when issue is closed: https://github.com/dotnet/razor-compiler/issues/242
|
||||
|
||||
---
|
||||
Directory.Build.props | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/Directory.Build.props b/Directory.Build.props
|
||||
index a57125f5..019ac376 100644
|
||||
--- a/Directory.Build.props
|
||||
+++ b/Directory.Build.props
|
||||
@@ -55,6 +55,7 @@
|
||||
<!-- Ensure API docs are available. -->
|
||||
<NoWarn>$(NoWarn.Replace('1591', ''))</NoWarn>
|
||||
<NoWarn Condition=" '$(BuildingInsideVisualStudio)' == 'true' ">$(NoWarn);0105</NoWarn>
|
||||
+ <NoWarn>$(NoWarn);NU1507</NoWarn>
|
||||
|
||||
<!-- For local builds, don't make missing XML docs a fatal build error, but still surface so we have visibility into undocumented APIs. -->
|
||||
<WarningsNotAsErrors Condition=" '$(ContinuousIntegrationBuild)' != 'true' ">$(WarningsNotAsErrors);CS1591</WarningsNotAsErrors>
|
Loading…
Reference in a new issue