Skip to content

Commit fd76c51

Browse files
committed
WIP
1 parent 3a6f58b commit fd76c51

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

src/Cli/Microsoft.DotNet.FileBasedPrograms/AppDirectiveHelpers.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
#nullable enable
56
using System;
67
using System.Collections.Generic;
78
using System.Collections.Immutable;

src/Cli/Microsoft.DotNet.FileBasedPrograms/ExternalHelpers.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
#nullable enable
56
using System;
67
using System.IO;
78

src/Cli/Microsoft.DotNet.FileBasedPrograms/Microsoft.DotNet.FileBasedPrograms.Package.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
<NoWarn>$(NoWarn);NU5128</NoWarn>
2121
<EnableDefaultItems>false</EnableDefaultItems>
2222
<DefineConstants>$(DefineConstants);FILE_BASED_PROGRAMS_SOURCE_PACKAGE_BUILD</DefineConstants>
23+
24+
<!-- Files must individually enable nullable in source packages -->
25+
<Nullable>disable</Nullable>
2326
</PropertyGroup>
2427

2528
<ItemGroup>

src/Cli/Microsoft.DotNet.FileBasedPrograms/Microsoft.DotNet.FileBasedPrograms.projitems

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
</PropertyGroup>
1111
<ItemGroup>
1212
<Compile Include="$(MSBuildThisFileDirectory)**\*.cs" />
13+
<!--
14+
TODO: this file isn't getting included in the source package.
15+
Is it possible/desirable to include random files from different parts of the repo tree in the package?
16+
-->
1317
<Compile Include="$(RepoRoot)src\Common\MSBuildUtilities.cs" LinkBase="Common" />
1418
<EmbeddedResource Include="$(MSBuildThisFileDirectory)\FileBasedProgramsResources.resx" LinkBase="Resources" GenerateSource="true" Namespace="Microsoft.DotNet.FileBasedPrograms" />
1519
</ItemGroup>

0 commit comments

Comments
 (0)