diff --git a/packages/jsii-pacmak/lib/targets/dotnet.ts b/packages/jsii-pacmak/lib/targets/dotnet.ts index 70727b8c9b..f9f6409c88 100644 --- a/packages/jsii-pacmak/lib/targets/dotnet.ts +++ b/packages/jsii-pacmak/lib/targets/dotnet.ts @@ -18,7 +18,7 @@ import { toReleaseVersion } from './version-utils'; import { TargetName } from '.'; -export const TARGET_FRAMEWORK = 'netcoreapp3.1'; +export const TARGET_FRAMEWORK = 'net6.0'; /** * Build .NET packages all together, by generating an aggregate solution file diff --git a/packages/jsii-pacmak/lib/targets/dotnet/filegenerator.ts b/packages/jsii-pacmak/lib/targets/dotnet/filegenerator.ts index 66da0fa773..0c9c033289 100644 --- a/packages/jsii-pacmak/lib/targets/dotnet/filegenerator.ts +++ b/packages/jsii-pacmak/lib/targets/dotnet/filegenerator.ts @@ -154,6 +154,8 @@ export class FileGenerator { '0109', // The member 'member' does not hide an inherited member. The new keyword is not required. ].join(','), ); + // warnings.comment('Suppress Target Framework Moniker build warnings messages from the netcoreapp3.1 target framework'); + // warnings.ele('SuppressTfmSupportBuildWarnings').text('true'); const xml = rootNode.end({ pretty: true, spaceBeforeSlash: true }); // Sending the xml content to the codemaker to ensure the file is written