Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions eng/targets/Imports.targets
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@
Updating a reference to this package to a newer version of the package may require changes in the referencing project.
No compatibility guarantees are provided.
</PackageDescription>
<!-- Disable project-level nullable to catch packaged files without an explicit directive;
consumers may compile them in projects where nullable is disabled. -->
<Nullable>disable</Nullable>
</PropertyGroup>

<!-- Include SourcePackage.editorconfig in all source packages. -->
Expand Down
2 changes: 2 additions & 0 deletions src/Compilers/Shared/IBuildEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#nullable enable

using System;
using System.Collections.Generic;
using System.IO;
Expand Down
2 changes: 2 additions & 0 deletions src/Compilers/Shared/StandardBuildEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#nullable enable

using System;
using System.Collections.Generic;
using System.IO;
Expand Down
2 changes: 1 addition & 1 deletion src/NuGet/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
<Import Project="$(RepositoryEngineeringDir)targets\PackageProject.props"/>
<Import Project="$(RepositoryEngineeringDir)targets\PackageProject.props" Condition="'$(IsSourcePackage)' != 'true'"/>
</Project>
2 changes: 1 addition & 1 deletion src/NuGet/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))" />
<Import Project="$(RepositoryEngineeringDir)targets\PackageProject.targets" Condition="'$(TargetFramework)' != ''"/>
<Import Project="$(RepositoryEngineeringDir)targets\PackageProject.targets" Condition="'$(IsSourcePackage)' != 'true' and '$(TargetFramework)' != ''"/>
</Project>