Skip to content

Commit e0fe662

Browse files
committed
Opt out of centralized package management
Current behavior is that builds are failing when a solution uses centralized package management via Directory.Packages.props files. To prevent this behaviour we are opting out of that centralice package management for generated projects.
1 parent f2e985f commit e0fe662

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CodeGenerator/Generators/CsprojGen.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ dotnet sln add {outputDirectory}/{projectName}.csproj
3737
<TargetFramework>{dbDriver.Options.DotnetFramework.ToName()}</TargetFramework>
3838
<RootNamespace>{namespaceName}</RootNamespace>
3939
<OutputType>Library</OutputType>{optionalNullableProperty}
40+
<!-- Opt out of centralized package management -->
41+
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
4042
</PropertyGroup>
4143
4244
<ItemGroup>

0 commit comments

Comments
 (0)