Browse Source

Add an option for new SDK style project format

pull/2031/head
dymanoid 5 years ago
parent
commit
967aed2667
  1. 18
      ICSharpCode.Decompiler/DecompilerSettings.cs
  2. 9
      ILSpy/Properties/Resources.Designer.cs
  3. 3
      ILSpy/Properties/Resources.resx
  4. 3
      ILSpy/Properties/Resources.zh-Hans.resx

18
ICSharpCode.Decompiler/DecompilerSettings.cs

@ -1329,6 +1329,24 @@ namespace ICSharpCode.Decompiler @@ -1329,6 +1329,24 @@ namespace ICSharpCode.Decompiler
}
}
bool useSdkStyleProjectFormat = true;
/// <summary>
/// Gets or sets a value indicating whether the new SDK style format
/// shall be used for the generated project files.
/// </summary>
[Category("DecompilerSettings.Other")]
[Description("DecompilerSettings.UseSdkStyleProjectFormat")]
public bool UseSdkStyleProjectFormat {
get { return useSdkStyleProjectFormat; }
set {
if (useSdkStyleProjectFormat != value) {
useSdkStyleProjectFormat = value;
OnPropertyChanged();
}
}
}
CSharpFormattingOptions csharpFormattingOptions;
[Browsable(false)]

9
ILSpy/Properties/Resources.Designer.cs generated

@ -1109,6 +1109,15 @@ namespace ICSharpCode.ILSpy.Properties { @@ -1109,6 +1109,15 @@ namespace ICSharpCode.ILSpy.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Use new SDK style format for generated project files (*.csproj).
/// </summary>
public static string DecompilerSettings_UseSdkStyleProjectFormat {
get {
return ResourceManager.GetString("DecompilerSettings.UseSdkStyleProjectFormat", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Use stackalloc initializer syntax.
/// </summary>

3
ILSpy/Properties/Resources.resx

@ -870,4 +870,7 @@ Do you want to continue?</value> @@ -870,4 +870,7 @@ Do you want to continue?</value>
<data name="NewTab" xml:space="preserve">
<value>New Tab</value>
</data>
<data name="DecompilerSettings.UseSdkStyleProjectFormat" xml:space="preserve">
<value>Use new SDK style format for generated project files (*.csproj)</value>
</data>
</root>

3
ILSpy/Properties/Resources.zh-Hans.resx

@ -732,4 +732,7 @@ @@ -732,4 +732,7 @@
<data name="About" xml:space="preserve">
<value>关于</value>
</data>
<data name="DecompilerSettings.UseSdkStyleProjectFormat" xml:space="preserve">
<value>使用新的 SDK 格式 (*.csproj) 生成项目文件</value>
</data>
</root>
Loading…
Cancel
Save