diff --git a/ICSharpCode.Decompiler/DecompilerSettings.cs b/ICSharpCode.Decompiler/DecompilerSettings.cs index 18efc74a0..8dd738273 100644 --- a/ICSharpCode.Decompiler/DecompilerSettings.cs +++ b/ICSharpCode.Decompiler/DecompilerSettings.cs @@ -1329,6 +1329,24 @@ namespace ICSharpCode.Decompiler } } + bool useSdkStyleProjectFormat = true; + + /// + /// Gets or sets a value indicating whether the new SDK style format + /// shall be used for the generated project files. + /// + [Category("DecompilerSettings.Other")] + [Description("DecompilerSettings.UseSdkStyleProjectFormat")] + public bool UseSdkStyleProjectFormat { + get { return useSdkStyleProjectFormat; } + set { + if (useSdkStyleProjectFormat != value) { + useSdkStyleProjectFormat = value; + OnPropertyChanged(); + } + } + } + CSharpFormattingOptions csharpFormattingOptions; [Browsable(false)] diff --git a/ILSpy/Properties/Resources.Designer.cs b/ILSpy/Properties/Resources.Designer.cs index fd8ab2914..b67a9aaba 100644 --- a/ILSpy/Properties/Resources.Designer.cs +++ b/ILSpy/Properties/Resources.Designer.cs @@ -1109,6 +1109,15 @@ namespace ICSharpCode.ILSpy.Properties { } } + /// + /// Looks up a localized string similar to Use new SDK style format for generated project files (*.csproj). + /// + public static string DecompilerSettings_UseSdkStyleProjectFormat { + get { + return ResourceManager.GetString("DecompilerSettings.UseSdkStyleProjectFormat", resourceCulture); + } + } + /// /// Looks up a localized string similar to Use stackalloc initializer syntax. /// diff --git a/ILSpy/Properties/Resources.resx b/ILSpy/Properties/Resources.resx index 79feebc20..673ad4223 100644 --- a/ILSpy/Properties/Resources.resx +++ b/ILSpy/Properties/Resources.resx @@ -870,4 +870,7 @@ Do you want to continue? New Tab + + Use new SDK style format for generated project files (*.csproj) + \ No newline at end of file diff --git a/ILSpy/Properties/Resources.zh-Hans.resx b/ILSpy/Properties/Resources.zh-Hans.resx index 0540d4faf..d53064059 100644 --- a/ILSpy/Properties/Resources.zh-Hans.resx +++ b/ILSpy/Properties/Resources.zh-Hans.resx @@ -732,4 +732,7 @@ 关于 + + 使用新的 SDK 格式 (*.csproj) 生成项目文件 + \ No newline at end of file