未验证 提交 5d8e2bea 编写于 作者: T Tomáš Matoušek 提交者: GitHub

Use Arcade x-plat resx generator (#34003)

* Clean up string resources, use Arcade resx generator

* CodeLens resources


* Use NET20 instead of NETFX20
上级 fea95d79
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Microsoft.CodeAnalysis.CSharp {
using System;
using System.Reflection;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class CSharpCodeStyleResources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal CSharpCodeStyleResources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.CodeAnalysis.CSharp.CSharpCodeStyleResources", typeof(CSharpCodeStyleResources).GetTypeInfo().Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Indentation preferences.
/// </summary>
internal static string Indentation_preferences {
get {
return ResourceManager.GetString("Indentation_preferences", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Space preferences.
/// </summary>
internal static string Space_preferences {
get {
return ResourceManager.GetString("Space_preferences", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Wrapping preferences.
/// </summary>
internal static string Wrapping_preferences {
get {
return ResourceManager.GetString("Wrapping_preferences", resourceCulture);
}
}
}
}
......@@ -59,18 +59,7 @@
<Compile Include="..\..\..\Workspaces\CSharp\Portable\Utilities\FormattingRangeHelper.cs" Link="Formatting\FormattingRangeHelper.cs" />
</ItemGroup>
<ItemGroup>
<Compile Update="CSharpCodeStyleResources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>CSharpCodeStyleResources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="CSharpCodeStyleResources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<SubType>Designer</SubType>
<LastGenOutput>CSharpCodeStyleResources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="CSharpCodeStyleResources.resx" GenerateSource="true" />
</ItemGroup>
<ItemGroup>
<PublicAPI Include="PublicAPI.Shipped.txt" />
......
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Microsoft.CodeAnalysis.CSharp {
using System;
using System.Reflection;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class CSharpCodeStyleFixesResources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal CSharpCodeStyleFixesResources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.CodeAnalysis.CSharp.CSharpCodeStyleFixesResources", typeof(CSharpCodeStyleFixesResources).GetTypeInfo().Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Remove this value when another is added..
/// </summary>
internal static string EmptyResource {
get {
return ResourceManager.GetString("EmptyResource", resourceCulture);
}
}
}
}
......@@ -46,18 +46,7 @@
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests" />
</ItemGroup>
<ItemGroup>
<Compile Update="CSharpCodeStyleFixesResources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>CSharpCodeStyleFixesResources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="CSharpCodeStyleFixesResources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<SubType>Designer</SubType>
<LastGenOutput>CSharpCodeStyleFixesResources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="CSharpCodeStyleFixesResources.resx" GenerateSource="true" />
</ItemGroup>
<ItemGroup>
<PublicAPI Include="PublicAPI.Shipped.txt" />
......
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Microsoft.CodeAnalysis {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class CodeStyleResources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal CodeStyleResources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.CodeAnalysis.CodeStyleResources", typeof(CodeStyleResources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to A language name cannot be specified for this option..
/// </summary>
internal static string A_language_name_cannot_be_specified_for_this_option {
get {
return ResourceManager.GetString("A_language_name_cannot_be_specified_for_this_option", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to A language name must be specified for this option..
/// </summary>
internal static string A_language_name_must_be_specified_for_this_option {
get {
return ResourceManager.GetString("A_language_name_must_be_specified_for_this_option", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Absolute path expected..
/// </summary>
internal static string Absolute_path_expected {
get {
return ResourceManager.GetString("Absolute_path_expected", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to An element with the same key but a different value already exists..
/// </summary>
internal static string An_element_with_the_same_key_but_a_different_value_already_exists {
get {
return ResourceManager.GetString("An_element_with_the_same_key_but_a_different_value_already_exists", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Arrays with more than one dimension cannot be serialized..
/// </summary>
internal static string Arrays_with_more_than_one_dimension_cannot_be_serialized {
get {
return ResourceManager.GetString("Arrays_with_more_than_one_dimension_cannot_be_serialized", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cannot serialize type &apos;{0}&apos;..
/// </summary>
internal static string Cannot_serialize_type_0 {
get {
return ResourceManager.GetString("Cannot_serialize_type_0", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Deserialization reader for &apos;{0}&apos; read incorrect number of values..
/// </summary>
internal static string Deserialization_reader_for_0_read_incorrect_number_of_values {
get {
return ResourceManager.GetString("Deserialization_reader_for_0_read_incorrect_number_of_values", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Error.
/// </summary>
internal static string Error {
get {
return ResourceManager.GetString("Error", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Fix formatting.
/// </summary>
internal static string Fix_formatting {
get {
return ResourceManager.GetString("Fix_formatting", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Indentation and spacing.
/// </summary>
internal static string Indentation_and_spacing {
get {
return ResourceManager.GetString("Indentation_and_spacing", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to New line preferences.
/// </summary>
internal static string New_line_preferences {
get {
return ResourceManager.GetString("New_line_preferences", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to None.
/// </summary>
internal static string None {
get {
return ResourceManager.GetString("None", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Refactoring Only.
/// </summary>
internal static string Refactoring_Only {
get {
return ResourceManager.GetString("Refactoring_Only", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Stream is too long..
/// </summary>
internal static string Stream_is_too_long {
get {
return ResourceManager.GetString("Stream_is_too_long", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Suggestion.
/// </summary>
internal static string Suggestion {
get {
return ResourceManager.GetString("Suggestion", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The type &apos;{0}&apos; is not understood by the serialization binder..
/// </summary>
internal static string The_type_0_is_not_understood_by_the_serialization_binder {
get {
return ResourceManager.GetString("The_type_0_is_not_understood_by_the_serialization_binder", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Value too large to be represented as a 30 bit unsigned integer..
/// </summary>
internal static string Value_too_large_to_be_represented_as_a_30_bit_unsigned_integer {
get {
return ResourceManager.GetString("Value_too_large_to_be_represented_as_a_30_bit_unsigned_integer", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Warning.
/// </summary>
internal static string Warning {
get {
return ResourceManager.GetString("Warning", resourceCulture);
}
}
}
}
......@@ -128,18 +128,7 @@
<Compile Include="..\..\..\Workspaces\Core\Portable\Shared\Utilities\CommonFormattingHelpers.cs" Link="Formatting\CommonFormattingHelpers.cs" />
</ItemGroup>
<ItemGroup>
<Compile Update="CodeStyleResources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>CodeStyleResources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="CodeStyleResources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<SubType>Designer</SubType>
<LastGenOutput>CodeStyleResources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="CodeStyleResources.resx" GenerateSource="true" />
</ItemGroup>
<ItemGroup>
<PublicAPI Include="PublicAPI.Shipped.txt" />
......
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Microsoft.CodeAnalysis {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class CodeStyleFixesResources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal CodeStyleFixesResources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.CodeAnalysis.CodeStyleFixesResources", typeof(CodeStyleFixesResources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Compilation is required to accomplish the task but is not supported by project {0}..
/// </summary>
internal static string Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0 {
get {
return ResourceManager.GetString("Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Fix all &apos;{0}&apos;.
/// </summary>
internal static string Fix_all_0 {
get {
return ResourceManager.GetString("Fix_all_0", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Fix all &apos;{0}&apos; in &apos;{1}&apos;.
/// </summary>
internal static string Fix_all_0_in_1 {
get {
return ResourceManager.GetString("Fix_all_0_in_1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Fix all &apos;{0}&apos; in Solution.
/// </summary>
internal static string Fix_all_0_in_Solution {
get {
return ResourceManager.GetString("Fix_all_0_in_Solution", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Project of ID {0} is required to accomplish the task but is not available from the solution.
/// </summary>
internal static string Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution {
get {
return ResourceManager.GetString("Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_" +
"solution", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Supplied diagnostic cannot be null..
/// </summary>
internal static string Supplied_diagnostic_cannot_be_null {
get {
return ResourceManager.GetString("Supplied_diagnostic_cannot_be_null", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Syntax tree is required to accomplish the task but is not supported by document {0}..
/// </summary>
internal static string SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0 {
get {
return ResourceManager.GetString("SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The solution does not contain the specified document..
/// </summary>
internal static string The_solution_does_not_contain_the_specified_document {
get {
return ResourceManager.GetString("The_solution_does_not_contain_the_specified_document", resourceCulture);
}
}
}
}
......@@ -25,18 +25,7 @@
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests" />
</ItemGroup>
<ItemGroup>
<Compile Update="CodeStyleFixesResources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>CodeStyleFixesResources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="CodeStyleFixesResources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<SubType>Designer</SubType>
<LastGenOutput>CodeStyleFixesResources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="CodeStyleFixesResources.resx" GenerateSource="true" />
</ItemGroup>
<ItemGroup>
<PublicAPI Include="PublicAPI.Shipped.txt" />
......
......@@ -53,19 +53,7 @@
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests" />
</ItemGroup>
<ItemGroup>
<Compile Update="VBCodeStyleResources.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>VBCodeStyleResources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="VBCodeStyleResources.resx">
<CustomToolNamespace>Microsoft.CodeAnalysis.VisualBasic.VBCodeStyleResources</CustomToolNamespace>
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
<LastGenOutput>VBCodeStyleResources.Designer.vb</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Update="VBCodeStyleResources.resx" GenerateSource="true" Namespace="Microsoft.CodeAnalysis.VisualBasic" />
</ItemGroup>
<ItemGroup>
<PublicAPI Include="PublicAPI.Shipped.txt" />
......
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.42000
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Imports System
Imports System.Reflection
Namespace Microsoft.CodeAnalysis.VisualBasic.VBCodeStyleResources
'This class was auto-generated by the StronglyTypedResourceBuilder
'class via a tool like ResGen or Visual Studio.
'To add or remove a member, edit your .ResX file then rerun ResGen
'with the /str option, or rebuild your VS project.
'''<summary>
''' A strongly-typed resource class, for looking up localized strings, etc.
'''</summary>
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
Friend Module VBCodeStyleResources
Private resourceMan As Global.System.Resources.ResourceManager
Private resourceCulture As Global.System.Globalization.CultureInfo
'''<summary>
''' Returns the cached ResourceManager instance used by this class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
Get
If Object.ReferenceEquals(resourceMan, Nothing) Then
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("VBCodeStyleResources", GetType(VBCodeStyleResources).GetTypeInfo.Assembly)
resourceMan = temp
End If
Return resourceMan
End Get
End Property
'''<summary>
''' Overrides the current thread's CurrentUICulture property for all
''' resource lookups using this strongly typed resource class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend Property Culture() As Global.System.Globalization.CultureInfo
Get
Return resourceCulture
End Get
Set
resourceCulture = value
End Set
End Property
'''<summary>
''' Looks up a localized string similar to Remove this value when another is added..
'''</summary>
Friend ReadOnly Property EmptyResource() As String
Get
Return ResourceManager.GetString("EmptyResource", resourceCulture)
End Get
End Property
End Module
End Namespace
......@@ -45,19 +45,7 @@
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests" />
</ItemGroup>
<ItemGroup>
<Compile Update="VBCodeStyleFixesResources.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>VBCodeStyleFixesResources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="VBCodeStyleFixesResources.resx">
<CustomToolNamespace>Microsoft.CodeAnalysis.VisualBasic.VBCodeStyleFixesResources</CustomToolNamespace>
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
<LastGenOutput>VBCodeStyleFixesResources.Designer.vb</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Update="VBCodeStyleFixesResources.resx" GenerateSource="true" Namespace="Microsoft.CodeAnalysis.VisualBasic" />
</ItemGroup>
<ItemGroup>
<PublicAPI Include="PublicAPI.Shipped.txt" />
......
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.42000
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Imports System
Imports System.Reflection
Namespace Microsoft.CodeAnalysis.VisualBasic.VBCodeStyleFixesResources
'This class was auto-generated by the StronglyTypedResourceBuilder
'class via a tool like ResGen or Visual Studio.
'To add or remove a member, edit your .ResX file then rerun ResGen
'with the /str option, or rebuild your VS project.
'''<summary>
''' A strongly-typed resource class, for looking up localized strings, etc.
'''</summary>
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
Friend Module VBCodeStyleFixesResources
Private resourceMan As Global.System.Resources.ResourceManager
Private resourceCulture As Global.System.Globalization.CultureInfo
'''<summary>
''' Returns the cached ResourceManager instance used by this class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
Get
If Object.ReferenceEquals(resourceMan, Nothing) Then
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("VBCodeStyleFixesResources", GetType(VBCodeStyleFixesResources).GetTypeInfo.Assembly)
resourceMan = temp
End If
Return resourceMan
End Get
End Property
'''<summary>
''' Overrides the current thread's CurrentUICulture property for all
''' resource lookups using this strongly typed resource class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend Property Culture() As Global.System.Globalization.CultureInfo
Get
Return resourceCulture
End Get
Set
resourceCulture = value
End Set
End Property
'''<summary>
''' Looks up a localized string similar to Remove this value when another is added..
'''</summary>
Friend ReadOnly Property EmptyResource() As String
Get
Return ResourceManager.GetString("EmptyResource", resourceCulture)
End Get
End Property
End Module
End Namespace
......@@ -195,7 +195,7 @@ private static System.Resources.ResourceManager ResourceManager
{
if (s_resourceManager == null)
{
s_resourceManager = new System.Resources.ResourceManager("Microsoft.CodeAnalysis.CSharp.CSharpResources", typeof(ErrorCode).GetTypeInfo().Assembly);
s_resourceManager = new System.Resources.ResourceManager(typeof(CSharpResources).FullName, typeof(ErrorCode).GetTypeInfo().Assembly);
}
return s_resourceManager;
......
......@@ -20,11 +20,6 @@
<ProjectReference Include="..\..\Core\Portable\Microsoft.CodeAnalysis.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Update="CSharpResources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>CSharpResources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="BoundTree\BoundNodes.xml" />
......@@ -40,11 +35,7 @@
<PublicAPI Include="PublicAPI.Unshipped.txt" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="CSharpResources.resx">
<SubType>Designer</SubType>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>CSharpResources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="CSharpResources.resx" GenerateSource="true" />
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler" />
......
......@@ -83,10 +83,38 @@ public class N : D.K<M>
CompileAndVerify(source, symbolValidator: module =>
{
var baseLine = System.Xml.Linq.XElement.Load(new StringReader(Resources.EmitSimpleBaseLine1));
System.Xml.Linq.XElement dumpXML = DumpTypeInfo(module);
Assert.Equal(baseLine.ToString(), dumpXML.ToString());
var dump = DumpTypeInfo(module).ToString();
AssertEx.AssertEqualToleratingWhitespaceDifferences(@"
<Global>
<type name=""&lt;Module&gt;"" />
<type name=""A"" Of=""T"" base=""System.Object"">
<field name=""x1"" type=""A&lt;T&gt;"" />
<field name=""x2"" type=""A&lt;D&gt;"" />
<type name=""B"" base=""A&lt;T&gt;"">
<field name=""y1"" type=""A&lt;T&gt;.B"" />
<field name=""y2"" type=""A&lt;D&gt;.B"" />
<type name=""C"" base=""A&lt;T&gt;.B"" />
</type>
<type name=""H"" Of=""S"" base=""System.Object"">
<type name=""I"" base=""A&lt;T&gt;.H&lt;S&gt;"" />
</type>
</type>
<type name=""D"" base=""System.Object"">
<type name=""K"" Of=""T"" base=""System.Object"">
<type name=""L"" base=""D.K&lt;T&gt;"" />
</type>
</type>
<type name=""F"" base=""A&lt;D&gt;"" />
<type name=""G"" base=""A&lt;NS1.E&gt;.B"" />
<type name=""J"" base=""A&lt;D&gt;.H&lt;D&gt;"" />
<type name=""M"" base=""System.Object"" />
<type name=""N"" base=""D.K&lt;M&gt;"" />
<NS1>
<type name=""E"" base=""D"" />
</NS1>
</Global>
", dump);
}, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
}
......
......@@ -20,22 +20,12 @@
<Compile Include="..\..\..\Core\MSBuildTask\MvidReader.cs">
<Link>Emit\MvidReader.cs</Link>
</Compile>
<Compile Update="Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="$(MicrosoftCSharpVersion)" />
<PackageReference Include="Microsoft.DiaSymReader" Version="$(MicrosoftDiaSymReaderVersion)" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
......
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Microsoft.CodeAnalysis.CSharp.UnitTests {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.CodeAnalysis.CSharp.UnitTests.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to &lt;Global&gt;
/// &lt;type name=&quot;&amp;lt;Module&amp;gt;&quot; /&gt;
/// &lt;type name=&quot;A&quot; Of=&quot;T&quot; base=&quot;System.Object&quot;&gt;
/// &lt;field name=&quot;x1&quot; type=&quot;A&amp;lt;T&amp;gt;&quot; /&gt;
/// &lt;field name=&quot;x2&quot; type=&quot;A&amp;lt;D&amp;gt;&quot; /&gt;
/// &lt;type name=&quot;B&quot; base=&quot;A&amp;lt;T&amp;gt;&quot;&gt;
/// &lt;field name=&quot;y1&quot; type=&quot;A&amp;lt;T&amp;gt;.B&quot; /&gt;
/// &lt;field name=&quot;y2&quot; type=&quot;A&amp;lt;D&amp;gt;.B&quot; /&gt;
/// &lt;type name=&quot;C&quot; base=&quot;A&amp;lt;T&amp;gt;.B&quot; /&gt;
/// &lt;/type&gt;
/// &lt;type name=&quot;H&quot; Of=&quot;S&quot; base=&quot;System.Objec [rest of string was truncated]&quot;;.
/// </summary>
internal static string EmitSimpleBaseLine1 {
get {
return ResourceManager.GetString("EmitSimpleBaseLine1", resourceCulture);
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="EmitSimpleBaseLine1" xml:space="preserve">
<value>&lt;Global&gt;
&lt;type name="&amp;lt;Module&amp;gt;" /&gt;
&lt;type name="A" Of="T" base="System.Object"&gt;
&lt;field name="x1" type="A&amp;lt;T&amp;gt;" /&gt;
&lt;field name="x2" type="A&amp;lt;D&amp;gt;" /&gt;
&lt;type name="B" base="A&amp;lt;T&amp;gt;"&gt;
&lt;field name="y1" type="A&amp;lt;T&amp;gt;.B" /&gt;
&lt;field name="y2" type="A&amp;lt;D&amp;gt;.B" /&gt;
&lt;type name="C" base="A&amp;lt;T&amp;gt;.B" /&gt;
&lt;/type&gt;
&lt;type name="H" Of="S" base="System.Object"&gt;
&lt;type name="I" base="A&amp;lt;T&amp;gt;.H&amp;lt;S&amp;gt;" /&gt;
&lt;/type&gt;
&lt;/type&gt;
&lt;type name="D" base="System.Object"&gt;
&lt;type name="K" Of="T" base="System.Object"&gt;
&lt;type name="L" base="D.K&amp;lt;T&amp;gt;" /&gt;
&lt;/type&gt;
&lt;/type&gt;
&lt;type name="F" base="A&amp;lt;D&amp;gt;" /&gt;
&lt;type name="G" base="A&amp;lt;NS1.E&amp;gt;.B" /&gt;
&lt;type name="J" base="A&amp;lt;D&amp;gt;.H&amp;lt;D&amp;gt;" /&gt;
&lt;type name="M" base="System.Object" /&gt;
&lt;type name="N" base="D.K&amp;lt;M&amp;gt;" /&gt;
&lt;NS1&gt;
&lt;type name="E" base="D" /&gt;
&lt;/NS1&gt;
&lt;/Global&gt;</value>
</data>
</root>
......@@ -21,18 +21,7 @@
<ProjectReference Include="..\..\..\..\Test\PdbUtilities\Roslyn.Test.PdbUtilities.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Update="Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Update="Resources.resx" GenerateSource="true" />
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
......
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18250
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System.Reflection;
namespace Microsoft.CodeAnalysis.CSharp.UnitTests {
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.CodeAnalysis.CSharp.UnitTests.Resources", typeof(Resources).GetTypeInfo().Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to extern alias libAlias=other_library.dll;
///class myClass
///{
///}.
/// </summary>
public static string InvalidExternAlias01 {
get {
return ResourceManager.GetString("InvalidExternAlias01", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to using System;
///using System.Collections.Generic;
///using System.Linq;
///using System.Text;
///namespace ConsoleApplication1
///{
/// class Program
/// {
/// static void Main(string[] args)
/// {
/// }
/// }
///}
///public class Class_1_L0
///{
/// //Sub [No Params] Qty: 10 [Specific Code Block]
/// public void TestSub_1_L1()
/// {
/// }
/// public void TestSub_2_L1()
/// {
/// }
/// public void TestSub_3_L1()
/// {
/// }
/// public void TestSub_4_L1()
/// {
/// }
/// public void TestSub_ [rest of string was truncated]&quot;;.
/// </summary>
public static string LongWithoutStmts_cs {
get {
return ResourceManager.GetString("LongWithoutStmts_cs", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to using System;
///using System.Collections.Generic;
///using System.Linq;
///using System.Text;
///
///namespace ConsoleApplication1
///{
/// class Program
/// {
/// static void Main(string[] args)
/// {
/// }
/// }
///}
///
///
/// public class Class_1_L0
/// {
///
/// //Sub [No Params] Qty: 10 [Specific Code Block]/Repeating:15
///
/// public void TestSub_1_L1()
/// {
///
/// System.Console.WriteLine(&quot;Test&quot; + 2);
/// System.Console.WriteLine(&quot;Test&quot; + 2);
/// System.Co [rest of string was truncated]&quot;;.
/// </summary>
public static string LongWithStmts_cs {
get {
return ResourceManager.GetString("LongWithStmts_cs", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to // &lt;Area&gt;Declaration of Methods with Optional Parameters&lt;/Area&gt;
///// &lt;Title&gt;Declaration of Optional Params&lt;/Title&gt;
///// &lt;Description&gt;Simple Declaration of a method with optional parameters. cast of an int to long&lt;/Description&gt;
///// &lt;Expects status=success&gt;&lt;/Expects&gt;
///// &lt;Code&gt;
///
///using System.Runtime.InteropServices;
///public struct Parent{
///
/// public int Goo([Optional] int i, [Optional] long j, [Optional] float f, [Optional] decimal d){
/// if(d==0 ) return 0;
/// return 1;
/// }
///}
///
///class Test{
/// public static [rest of string was truncated]&quot;;.
/// </summary>
public static string OptionalFloat {
get {
return ResourceManager.GetString("OptionalFloat", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to // &lt;Area&gt;Declaration of Methods with Optional Parameters&lt;/Area&gt;
///// &lt;Title&gt;Declaration of Optional Params&lt;/Title&gt;
///// &lt;Description&gt;Simple Declaration of a method with optional parameters
///// Params can&apos;t be defaulted&lt;/Description&gt;
///// &lt;RelatedBugs&gt;Dev10:477862&lt;/RelatedBugs&gt;
///// &lt;Expects status=error&gt;CS1751&lt;/Expects&gt;
///// &lt;Code&gt;
///
///public class Parent{
///
/// public int Goo( int x=2,params object[] array= null){
/// x=2;
/// if(x ==2) return 0;
/// return 1;
/// }
///}
///
///class Test{
/// public static int Main(){
/// Parent [rest of string was truncated]&quot;;.
/// </summary>
public static string OptionalParamsArray {
get {
return ResourceManager.GetString("OptionalParamsArray", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to class Test : N1.I1
/// {
/// int global::N.
/// </summary>
public static string PartialAliasedName {
get {
return ResourceManager.GetString("PartialAliasedName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to class C
///{
///public static int Main()
///{
///switch(str)
///{
///default:
///List&lt;in.
/// </summary>
public static string PartialInKeyword {
get {
return ResourceManager.GetString("PartialInKeyword", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to StringText oldText = new StringText(@&quot;using System;
///
///class AAttribute : Attribute {
/// public AAttribute(object o) { }
///}
///
///[A(new string[] is { &quot;&quot;&quot;);
/// var startTree = SyntaxTree.Parse(oldText);
/// var roundTrip = startTree.Root.ToString().Equals(oldText);.
/// </summary>
public static string PartialNewAttributeArray {
get {
return ResourceManager.GetString("PartialNewAttributeArray", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to #define TEST
///#define TEST2
///class Test
///{
///static int Main()
///{
///int x = 1;
///
///#if TEST3
///x++;
///#elif TEST2 &amp;.
/// </summary>
public static string PartialPreprocessorExpression {
get {
return ResourceManager.GetString("PartialPreprocessorExpression", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to using System;
///public class Test
///{
///public static int Main(string [] args)
///{
///switch (false) {
///case true:
///break;
///default false:.
/// </summary>
public static string PartialSwitchBlock {
get {
return ResourceManager.GetString("PartialSwitchBlock", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to #define A
///using System;
///class Program
///{
///static int Main()
///{
///int x = 0;
///#if A == A\.
/// </summary>
public static string PartialUnicodeIdentifier {
get {
return ResourceManager.GetString("PartialUnicodeIdentifier", resourceCulture);
}
}
}
}
......@@ -26,18 +26,7 @@
<PackageReference Include="Moq" Version="$(MoqVersion)" />
</ItemGroup>
<ItemGroup>
<Compile Update="Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Update="Resources.resx" GenerateSource="true" />
</ItemGroup>
<ItemGroup>
<None Include="Resources/default.win32manifest" />
......
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Microsoft.CodeAnalysis.UnitTests {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.CodeAnalysis.UnitTests.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] defaultWin32Manifest {
get {
object obj = ResourceManager.GetObject("defaultWin32Manifest", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] nativeWithStringIDsAndTypesAndIntTypes {
get {
object obj = ResourceManager.GetObject("nativeWithStringIDsAndTypesAndIntTypes", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] Roslyn_ico {
get {
object obj = ResourceManager.GetObject("Roslyn_ico", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] VerResourceBuiltByRC {
get {
object obj = ResourceManager.GetObject("VerResourceBuiltByRC", resourceCulture);
return ((byte[])(obj));
}
}
}
}
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Microsoft.CodeAnalysis.BuildTasks {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class ErrorString {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal ErrorString() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.CodeAnalysis.BuildTasks.ErrorString", typeof(ErrorString).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to MSB3883: Unexpected exception: .
/// </summary>
internal static string Compiler_UnexpectedException {
get {
return ResourceManager.GetString("Compiler_UnexpectedException", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Failed to check the content hash of the destination ref assembly &apos;{0}&apos;. It will be overwritten..
/// </summary>
internal static string CopyRefAssembly_BadDestination1 {
get {
return ResourceManager.GetString("CopyRefAssembly_BadDestination1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Failed to check the content hash of the source ref assembly &apos;{0}&apos;: {1}
///{2}.
/// </summary>
internal static string CopyRefAssembly_BadSource3 {
get {
return ResourceManager.GetString("CopyRefAssembly_BadSource3", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Reference assembly &quot;{0}&quot; already has latest information. Leaving it untouched..
/// </summary>
internal static string CopyRefAssembly_SkippingCopy1 {
get {
return ResourceManager.GetString("CopyRefAssembly_SkippingCopy1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Could not extract the MVID from &quot;{0}&quot;. Are you sure it is a reference assembly?.
/// </summary>
internal static string CopyRefAssembly_SourceNotRef1 {
get {
return ResourceManager.GetString("CopyRefAssembly_SourceNotRef1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to MSB3053: The assembly alias &quot;{1}&quot; on reference &quot;{0}&quot; contains illegal characters..
/// </summary>
internal static string Csc_AssemblyAliasContainsIllegalCharacters {
get {
return ResourceManager.GetString("Csc_AssemblyAliasContainsIllegalCharacters", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to MSB3051: The parameter to the compiler is invalid. {0}.
/// </summary>
internal static string Csc_InvalidParameter {
get {
return ResourceManager.GetString("Csc_InvalidParameter", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to MSB3052: The parameter to the compiler is invalid, &apos;{0}{1}&apos; will be ignored..
/// </summary>
internal static string Csc_InvalidParameterWarning {
get {
return ResourceManager.GetString("Csc_InvalidParameterWarning", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The string &quot;{0}&quot; cannot be converted to a boolean (true/false) value..
/// </summary>
internal static string General_CannotConvertStringToBool {
get {
return ResourceManager.GetString("General_CannotConvertStringToBool", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to MSB3081: A problem occurred while trying to set the &quot;{0}&quot; parameter for the IDE&apos;s in-process compiler. {1}.
/// </summary>
internal static string General_CouldNotSetHostObjectParameter {
get {
return ResourceManager.GetString("General_CouldNotSetHostObjectParameter", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to MSB3105: The item &quot;{0}&quot; was specified more than once in the &quot;{1}&quot; parameter. Duplicate items are not supported by the &quot;{1}&quot; parameter..
/// </summary>
internal static string General_DuplicateItemsNotSupported {
get {
return ResourceManager.GetString("General_DuplicateItemsNotSupported", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to MSB3083: The item &quot;{0}&quot; was specified more than once in the &quot;{1}&quot; parameter and both items had the same value &quot;{2}&quot; for the &quot;{3}&quot; metadata. Duplicate items are not supported by the &quot;{1}&quot; parameter unless they have different values for the &quot;{3}&quot; metadata..
/// </summary>
internal static string General_DuplicateItemsNotSupportedWithMetadata {
get {
return ResourceManager.GetString("General_DuplicateItemsNotSupportedWithMetadata", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expected file &quot;{0}&quot; does not exist..
/// </summary>
internal static string General_ExpectedFileMissing {
get {
return ResourceManager.GetString("General_ExpectedFileMissing", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to MSB3087: An incompatible host object was passed into the &quot;{0}&quot; task. The host object for this task must implement the &quot;{1}&quot; interface..
/// </summary>
internal static string General_IncorrectHostObject {
get {
return ResourceManager.GetString("General_IncorrectHostObject", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Item &quot;{0}&quot; has attribute &quot;{1}&quot; with value &quot;{2}&quot; that could not be converted to &quot;{3}&quot;..
/// </summary>
internal static string General_InvalidAttributeMetadata {
get {
return ResourceManager.GetString("General_InvalidAttributeMetadata", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The IDE&apos;s in-process compiler does not support the specified values for the &quot;{0}&quot; parameter. Therefore, this task will fallback to using the command-line compiler..
/// </summary>
internal static string General_ParameterUnsupportedOnHostCompiler {
get {
return ResourceManager.GetString("General_ParameterUnsupportedOnHostCompiler", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to MSB3104: The referenced assembly &quot;{0}&quot; was not found. If this assembly is produced by another one of your projects, please make sure to build that project before building this one..
/// </summary>
internal static string General_ReferenceDoesNotExist {
get {
return ResourceManager.GetString("General_ReferenceDoesNotExist", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to MSB3082: Task failed because &quot;{0}&quot; was not found..
/// </summary>
internal static string General_ToolFileNotFound {
get {
return ResourceManager.GetString("General_ToolFileNotFound", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to File &quot;{0}&quot; could not be read: {1}.
/// </summary>
internal static string General_UnableToReadFile {
get {
return ResourceManager.GetString("General_UnableToReadFile", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} contains duplicate items &apos;{1}&apos; with conflicting metadata &apos;{2}&apos;: &apos;{3}&apos; and &apos;{4}&apos;.
/// </summary>
internal static string MapSourceRoots_ContainsDuplicate {
get {
return ResourceManager.GetString("MapSourceRoots.ContainsDuplicate", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The value of {0} not found in {1} items, or the corresponding item is not a top-level source root: &apos;{2}&apos;.
/// </summary>
internal static string MapSourceRoots_NoSuchTopLevelSourceRoot {
get {
return ResourceManager.GetString("MapSourceRoots.NoSuchTopLevelSourceRoot", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} items must include at least one top-level (not nested) item when {1} is true.
/// </summary>
internal static string MapSourceRoots_NoTopLevelSourceRoot {
get {
return ResourceManager.GetString("MapSourceRoots.NoTopLevelSourceRoot", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} paths are required to end with a slash or backslash: &apos;{1}&apos;.
/// </summary>
internal static string MapSourceRoots_PathMustEndWithSlashOrBackslash {
get {
return ResourceManager.GetString("MapSourceRoots.PathMustEndWithSlashOrBackslash", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Shared compilation failed; falling back to tool: {0}.
/// </summary>
internal static string SharedCompilationFallback {
get {
return ResourceManager.GetString("SharedCompilationFallback", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Using shared compilation with compiler from directory: {0}.
/// </summary>
internal static string UsingSharedCompilation {
get {
return ResourceManager.GetString("UsingSharedCompilation", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to MSB3401: &quot;{1}&quot; is an invalid value for the &quot;{0}&quot; parameter. The valid values are: {2}.
/// </summary>
internal static string Vbc_EnumParameterHasInvalidValue {
get {
return ResourceManager.GetString("Vbc_EnumParameterHasInvalidValue", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &quot;{1}&quot; is an invalid value for the &quot;{0}&quot; parameter..
/// </summary>
internal static string Vbc_ParameterHasInvalidValue {
get {
return ResourceManager.GetString("Vbc_ParameterHasInvalidValue", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to MSB3402: There was an error creating the pdb file &quot;{0}&quot;. {1}.
/// </summary>
internal static string Vbc_RenamePDB {
get {
return ResourceManager.GetString("Vbc_RenamePDB", resourceCulture);
}
}
}
}
......@@ -47,17 +47,9 @@
<Compile Include="..\Portable\InternalUtilities\ReflectionUtilities.cs" />
<Compile Include="..\Portable\InternalUtilities\RoslynString.cs" />
<Compile Include="..\Portable\InternalUtilities\UnicodeCharacterUtilities.cs" />
<Compile Update="ErrorString.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ErrorString.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="ErrorString.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ErrorString.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="ErrorString.resx" GenerateSource="true" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Build.Framework" Version="$(MicrosoftBuildFrameworkVersion)" ExcludeAssets="Runtime" />
......
......@@ -25,7 +25,7 @@ internal static void OnFatalException(Exception exception)
Debugger.Break();
}
#if !NETFX20
#if !NET20
// don't fail fast with an aggregate exception that is masking true exception
var aggregate = exception as AggregateException;
if (aggregate != null && aggregate.InnerExceptions.Count == 1)
......
......@@ -199,7 +199,7 @@ private static void Report(Exception exception, Action<Exception>? handler)
return;
}
#if !NETFX20
#if !NET20
if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
{
return;
......
......@@ -22,11 +22,6 @@
</PropertyGroup>
<ItemGroup>
<Compile Update="CodeAnalysisResources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>CodeAnalysisResources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="Operations\OperationInterfaces.xml" />
......@@ -99,11 +94,7 @@
<InternalsVisibleTo Include="CompilerBenchmarks" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="CodeAnalysisResources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<SubType>Designer</SubType>
<LastGenOutput>CodeAnalysisResources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="CodeAnalysisResources.resx" GenerateSource="true" />
<EmbeddedResource Include="Resources\default.win32manifest" />
</ItemGroup>
<ItemGroup>
......
......@@ -12,6 +12,7 @@
<ProjectReference Include="..\..\..\Core\Portable\Microsoft.CodeAnalysis.csproj" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="ExpressionCompiler\*.*" LogicalName="ExpressionCompiler.%(FileName)%(Extension)" />
<Content Include="Analyzers\FaultyAnalyzer.cs" />
<EmbeddedResource Include="Analyzers\FaultyAnalyzer.dll" />
<Content Include="AssemblyLoadTests\Alpha.cs" />
......@@ -99,9 +100,6 @@
<EmbeddedResource Include="SymbolsTests\CustomModifiers\GenericMethodWithModifiers.dll" />
<Content Include="SymbolsTests\NoPia\ParametersWithoutNames.cs" />
<EmbeddedResource Include="PerfTests\CSPerfTest.cs" />
<Content Include="Resources\License.txt" />
<Content Include="Resources\nativeCOFFResources.obj" />
<Content Include="Resources\Regress40025DLL.dll" />
<Content Include="SymbolsTests\BigVisitor.cs" />
<EmbeddedResource Include="SymbolsTests\BigVisitor.dll" />
<EmbeddedResource Include="SymbolsTests\CorLibrary\FakeMsCorLib.dll" />
......@@ -371,7 +369,6 @@
<Content Include="WinRt\WinMDPrefixing.cs" />
<EmbeddedResource Include="WinRt\WinMDPrefixing.ildump" />
<EmbeddedResource Include="WinRt\WinMDPrefixing.winmd" />
<Content Include="project.json" />
<Content Include="SymbolsTests\netModule\hash_module.cs" />
<EmbeddedResource Include="SymbolsTests\NoPia\MissingPIAAttributes.dll" />
<Content Include="WinRt\WImpl.il" />
......@@ -392,6 +389,4 @@
<ItemGroup>
<EmbeddedResource Include="SymbolsTests\nativeCOFFResources.obj" />
</ItemGroup>
<ItemGroup>
</ItemGroup>
</Project>
\ No newline at end of file
......@@ -54,6 +54,30 @@ public static class Basic
private static byte[] s_nativeApp;
public static byte[] NativeApp => ResourceLoader.GetOrCreateResource(ref s_nativeApp, "MetadataTests.NativeApp.exe");
}
public static class ExpressionCompiler
{
private static byte[] s_empty;
public static byte[] Empty => ResourceLoader.GetOrCreateResource(ref s_empty, "ExpressionCompiler.Empty.dll");
private static byte[] s_libraryA;
public static byte[] LibraryA => ResourceLoader.GetOrCreateResource(ref s_libraryA, "ExpressionCompiler.LibraryA.winmd");
private static byte[] s_libraryB;
public static byte[] LibraryB => ResourceLoader.GetOrCreateResource(ref s_libraryB, "ExpressionCompiler.LibraryB.winmd");
private static byte[] s_noValidTables;
public static byte[] NoValidTables => ResourceLoader.GetOrCreateResource(ref s_noValidTables, "ExpressionCompiler.NoValidTables.metadata");
private static byte[] s_windows;
public static byte[] Windows => ResourceLoader.GetOrCreateResource(ref s_windows, "ExpressionCompiler.Windows.winmd");
private static byte[] s_windowsData;
public static byte[] WindowsData => ResourceLoader.GetOrCreateResource(ref s_windowsData, "ExpressionCompiler.Windows.Data.winmd");
private static byte[] s_windowsStorage;
public static byte[] WindowsStorage => ResourceLoader.GetOrCreateResource(ref s_windowsStorage, "ExpressionCompiler.Windows.Storage.winmd");
}
}
namespace TestResources.MetadataTests
......
......@@ -93,7 +93,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Friend Shared ReadOnly Property ResourceManager As Resources.ResourceManager
Get
If s_resourceManager Is Nothing Then
s_resourceManager = New Resources.ResourceManager("VBResources", GetType(ERRID).GetTypeInfo().Assembly)
s_resourceManager = New Resources.ResourceManager(GetType(VBResources).FullName, GetType(ERRID).GetTypeInfo().Assembly)
End If
Return s_resourceManager
......
......@@ -20,17 +20,7 @@
<ProjectReference Include="..\..\Core\Portable\Microsoft.CodeAnalysis.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Update="VBResources.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>VBResources.resx</DependentUpon>
</Compile>
<EmbeddedResource Update="VBResources.resx">
<CustomToolNamespace>Microsoft.CodeAnalysis.VisualBasic</CustomToolNamespace>
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
<SubType>Designer</SubType>
<LastGenOutput>VBResources.Designer.vb</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="VBResources.resx" GenerateSource="true" Namespace="Microsoft.CodeAnalysis.VisualBasic" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Symbols\EmbeddedSymbols\Embedded.vb" />
......
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.42000
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Imports System
'This class was auto-generated by the StronglyTypedResourceBuilder
'class via a tool like ResGen or Visual Studio.
'To add or remove a member, edit your .ResX file then rerun ResGen
'with the /str option, or rebuild your VS project.
'''<summary>
''' A strongly-typed resource class, for looking up localized strings, etc.
'''</summary>
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0"), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
Friend Class CommandLineTestResources
Private Shared resourceMan As Global.System.Resources.ResourceManager
Private Shared resourceCulture As Global.System.Globalization.CultureInfo
<Global.System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _
Friend Sub New()
MyBase.New
End Sub
'''<summary>
''' Returns the cached ResourceManager instance used by this class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend Shared ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
Get
If Object.ReferenceEquals(resourceMan, Nothing) Then
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("CommandLineTestResources", GetType(CommandLineTestResources).Assembly)
resourceMan = temp
End If
Return resourceMan
End Get
End Property
'''<summary>
''' Overrides the current thread's CurrentUICulture property for all
''' resource lookups using this strongly typed resource class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend Shared Property Culture() As Global.System.Globalization.CultureInfo
Get
Return resourceCulture
End Get
Set
resourceCulture = value
End Set
End Property
'''<summary>
''' Looks up a localized resource of type System.Byte[].
'''</summary>
Friend Shared ReadOnly Property vbc_rsp() As Byte()
Get
Dim obj As Object = ResourceManager.GetObject("vbc_rsp", resourceCulture)
Return CType(obj,Byte())
End Get
End Property
End Class
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="vbc_rsp" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>../../vbc/vbc.rsp;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>
......@@ -7048,7 +7048,7 @@ Imports System
End Sub
Private Function GetDefaultResponseFilePath() As String
Return Temp.CreateFile().WriteAllBytes(CommandLineTestResources.vbc_rsp).Path
Return Temp.CreateFile().WriteAllBytes(GetType(CommandLineTests).Assembly.GetManifestResourceStream("vbc.rsp").ReadAllBytes()).Path
End Function
<Fact>
......
......@@ -34,48 +34,7 @@
<Import Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Update="My Project\Application.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Application.myapp</DependentUpon>
</Compile>
<Compile Update="My Project\Resources.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Update="My Project\Settings.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<Compile Update="CommandLineTestResources.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>CommandLineTestResources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="My Project\Resources.resx">
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
<CustomToolNamespace>My.Resources</CustomToolNamespace>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Update="CommandLineTestResources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>CommandLineTestResources.Designer.vb</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="My Project\Application.myapp">
<Generator>MyApplicationCodeGenerator</Generator>
<LastGenOutput>Application.Designer.vb</LastGenOutput>
</None>
<None Include="My Project\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<CustomToolNamespace>My</CustomToolNamespace>
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
</None>
<EmbeddedResource Include="../../vbc/vbc.rsp" Link="Resources\vbc.rsp" />
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
......
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.42000
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
<?xml version="1.0" encoding="utf-8"?>
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<MySubMain>false</MySubMain>
<SingleInstance>false</SingleInstance>
<ShutdownMode>0</ShutdownMode>
<EnableVisualStyles>true</EnableVisualStyles>
<AuthenticationMode>0</AuthenticationMode>
<ApplicationType>1</ApplicationType>
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
</MyApplicationData>
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.42000
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Imports System
Namespace My.Resources
'This class was auto-generated by the StronglyTypedResourceBuilder
'class via a tool like ResGen or Visual Studio.
'To add or remove a member, edit your .ResX file then rerun ResGen
'with the /str option, or rebuild your VS project.
'''<summary>
''' A strongly-typed resource class, for looking up localized strings, etc.
'''</summary>
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0"), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
Friend Module Resources
Private resourceMan As Global.System.Resources.ResourceManager
Private resourceCulture As Global.System.Globalization.CultureInfo
'''<summary>
''' Returns the cached ResourceManager instance used by this class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
Get
If Object.ReferenceEquals(resourceMan, Nothing) Then
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Resources", GetType(Resources).Assembly)
resourceMan = temp
End If
Return resourceMan
End Get
End Property
'''<summary>
''' Overrides the current thread's CurrentUICulture property for all
''' resource lookups using this strongly typed resource class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend Property Culture() As Global.System.Globalization.CultureInfo
Get
Return resourceCulture
End Get
Set
resourceCulture = value
End Set
End Property
End Module
End Namespace
<?xml version="1.0" encoding="utf-8"?>
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.42000
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Namespace My
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.4.0.0"), _
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Partial Friend NotInheritable Class MySettings
Inherits Global.System.Configuration.ApplicationSettingsBase
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
#Region "My.Settings Auto-Save Functionality"
#If _MyType = "WindowsForms" Then
Private Shared addedHandler As Boolean
Private Shared addedHandlerLockObject As New Object
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs)
If My.Application.SaveMySettingsOnExit Then
My.Settings.Save()
End If
End Sub
#End If
#End Region
Public Shared ReadOnly Property [Default]() As MySettings
Get
#If _MyType = "WindowsForms" Then
If Not addedHandler Then
SyncLock addedHandlerLockObject
If Not addedHandler Then
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
addedHandler = True
End If
End SyncLock
End If
#End If
Return defaultInstance
End Get
End Property
End Class
End Namespace
Namespace My
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
Friend Module MySettingsProperty
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
Friend ReadOnly Property Settings() As Global.My.MySettings
Get
Return Global.My.MySettings.Default
End Get
End Property
End Module
End Namespace
<?xml version='1.0' encoding='utf-8'?>
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
......@@ -95,10 +95,38 @@ End Class
CompileAndVerify(c1, symbolValidator:=
Sub([Module])
Dim baseLine = Xml.Linq.XElement.Load(New StringReader(My.Resources.Resource.EmitSimpleBaseLine1))
Dim dumpXML As Xml.Linq.XElement = DumpTypeInfo([Module])
Assert.Equal(baseLine.ToString(), dumpXML.ToString())
Dim dump = DumpTypeInfo([Module]).ToString()
AssertEx.AssertEqualToleratingWhitespaceDifferences("
<Global>
<type name=""&lt;Module&gt;"" />
<type name=""A"" Of=""T"" base=""System.Object"">
<field name=""x1"" type=""A(Of T)"" />
<field name=""x2"" type=""A(Of D)"" />
<type name=""B"" base=""A(Of T)"">
<field name=""y1"" type=""A(Of T).B"" />
<field name=""y2"" type=""A(Of D).B"" />
<type name=""C"" base=""A(Of T).B"" />
</type>
<type name=""H"" Of=""S"" base=""System.Object"">
<type name=""I"" base=""A(Of T).H(Of S)"" />
</type>
</type>
<type name=""D"" base=""System.Object"">
<type name=""K"" Of=""T"" base=""System.Object"">
<type name=""L"" base=""D.K(Of T)"" />
</type>
</type>
<type name=""F"" base=""A(Of D)"" />
<type name=""G"" base=""A(Of NS1.E).B"" />
<type name=""J"" base=""A(Of D).H(Of D)"" />
<type name=""M"" base=""System.Object"" />
<type name=""N"" base=""D.K(Of M)"" />
<NS1>
<type name=""E"" base=""D"" />
</NS1>
</Global>
", dump)
End Sub)
End Sub
......
......@@ -25,11 +25,6 @@
<PackageReference Include="Microsoft.VisualBasic" Version="$(MicrosoftVisualBasicVersion)" Condition="'$(TargetFramework)' == 'net472'" />
</ItemGroup>
<ItemGroup>
<Compile Update="Resource.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resource.resx</DependentUpon>
</Compile>
<Content Include="CodeGen\ConversionsILGenTestBaseline.txt" />
<Content Include="CodeGen\ConversionsILGenTestBaseline1.txt" />
<Content Include="ExpressionTrees\Results\CheckedAndOrXor.txt" />
......@@ -106,15 +101,6 @@
<Import Include="Xunit" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="ExpressionTrees\ExpTreeTestResources.resx">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Update="Resource.resx">
<CustomToolNamespace>Microsoft.CodeAnalysis.VisualBasic.UnitTests.My.Resources</CustomToolNamespace>
<Generator>ResXFileCodeGenerator</Generator>
<SubType>Designer</SubType>
<LastGenOutput>Resource.Designer.vb</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="CodeGen\ConversionsILGenTestBaseline.txt" />
<EmbeddedResource Include="CodeGen\ConversionsILGenTestBaseline1.txt" />
<EmbeddedResource Include="CodeGen\ConversionsILGenTestSource.vb" />
......
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.18010
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Imports System
Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests.My.Resources
'This class was auto-generated by the StronglyTypedResourceBuilder
'class via a tool like ResGen or Visual Studio.
'To add or remove a member, edit your .ResX file then rerun ResGen
'with the /str option, or rebuild your VS project.
'''<summary>
''' A strongly-typed resource class, for looking up localized strings, etc.
'''</summary>
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
Friend Class Resource
Private Shared resourceMan As Global.System.Resources.ResourceManager
Private Shared resourceCulture As Global.System.Globalization.CultureInfo
<Global.System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _
Friend Sub New()
MyBase.New
End Sub
'''<summary>
''' Returns the cached ResourceManager instance used by this class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend Shared ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
Get
If Object.ReferenceEquals(resourceMan, Nothing) Then
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Resource", GetType(Resource).Assembly)
resourceMan = temp
End If
Return resourceMan
End Get
End Property
'''<summary>
''' Overrides the current thread's CurrentUICulture property for all
''' resource lookups using this strongly typed resource class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend Shared Property Culture() As Global.System.Globalization.CultureInfo
Get
Return resourceCulture
End Get
Set
resourceCulture = value
End Set
End Property
'''<summary>
''' Looks up a localized string similar to &lt;Global&gt;
''' &lt;type name=&quot;&amp;lt;Module&amp;gt;&quot; /&gt;
''' &lt;type name=&quot;A&quot; Of=&quot;T&quot; base=&quot;System.Object&quot;&gt;
''' &lt;field name=&quot;x1&quot; type=&quot;A(Of T)&quot; /&gt;
''' &lt;field name=&quot;x2&quot; type=&quot;A(Of D)&quot; /&gt;
''' &lt;type name=&quot;B&quot; base=&quot;A(Of T)&quot;&gt;
''' &lt;field name=&quot;y1&quot; type=&quot;A(Of T).B&quot; /&gt;
''' &lt;field name=&quot;y2&quot; type=&quot;A(Of D).B&quot; /&gt;
''' &lt;type name=&quot;C&quot; base=&quot;A(Of T).B&quot; /&gt;
''' &lt;/type&gt;
''' &lt;type name=&quot;H&quot; Of=&quot;S&quot; base=&quot;System.Object&quot;&gt;
''' [rest of string was truncated]&quot;;.
'''</summary>
Friend Shared ReadOnly Property EmitSimpleBaseLine1() As String
Get
Return ResourceManager.GetString("EmitSimpleBaseLine1", resourceCulture)
End Get
End Property
End Class
End Namespace
<?xml version="1.0" encoding="utf-8"?>
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="EmitSimpleBaseLine1" xml:space="preserve">
<value>&lt;Global&gt;
&lt;type name="&amp;lt;Module&amp;gt;" /&gt;
&lt;type name="A" Of="T" base="System.Object"&gt;
&lt;field name="x1" type="A(Of T)" /&gt;
&lt;field name="x2" type="A(Of D)" /&gt;
&lt;type name="B" base="A(Of T)"&gt;
&lt;field name="y1" type="A(Of T).B" /&gt;
&lt;field name="y2" type="A(Of D).B" /&gt;
&lt;type name="C" base="A(Of T).B" /&gt;
&lt;/type&gt;
&lt;type name="H" Of="S" base="System.Object"&gt;
&lt;type name="I" base="A(Of T).H(Of S)" /&gt;
&lt;/type&gt;
&lt;/type&gt;
&lt;type name="D" base="System.Object"&gt;
&lt;type name="K" Of="T" base="System.Object"&gt;
&lt;type name="L" base="D.K(Of T)" /&gt;
&lt;/type&gt;
&lt;/type&gt;
&lt;type name="F" base="A(Of D)" /&gt;
&lt;type name="G" base="A(Of NS1.E).B" /&gt;
&lt;type name="J" base="A(Of D).H(Of D)" /&gt;
&lt;type name="M" base="System.Object" /&gt;
&lt;type name="N" base="D.K(Of M)" /&gt;
&lt;NS1&gt;
&lt;type name="E" base="D" /&gt;
&lt;/NS1&gt;
&lt;/Global&gt;</value>
</data>
</root>
......@@ -39,11 +39,6 @@
<Import Include="Xunit" />
</ItemGroup>
<ItemGroup>
<Compile Update="Resource.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resource.resx</DependentUpon>
</Compile>
<Content Include="Semantics\Async_Overload_Change_3.vb.txt" />
<Content Include="Semantics\BinaryOperatorsTestBaseline1.txt" />
<Content Include="Semantics\BinaryOperatorsTestBaseline2.txt" />
......@@ -51,12 +46,6 @@
<Content Include="Semantics\BinaryOperatorsTestBaseline4.txt" />
<Content Include="Semantics\BinaryOperatorsTestBaseline5.txt" />
<Compile Remove="Binding\T_68086.vb" />
<EmbeddedResource Update="Resource.resx">
<CustomToolNamespace>Microsoft.CodeAnalysis.VisualBasic.UnitTests.My.Resources</CustomToolNamespace>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resource.Designer.vb</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Semantics\Async_Overload_Change_3.vb.txt" />
<EmbeddedResource Include="Semantics\BinaryOperatorsTestBaseline1.txt" />
<EmbeddedResource Include="Semantics\BinaryOperatorsTestBaseline2.txt" />
......
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.42000
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Imports System
Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests.My.Resources
'This class was auto-generated by the StronglyTypedResourceBuilder
'class via a tool like ResGen or Visual Studio.
'To add or remove a member, edit your .ResX file then rerun ResGen
'with the /str option, or rebuild your VS project.
'''<summary>
''' A strongly-typed resource class, for looking up localized strings, etc.
'''</summary>
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0"),
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()>
Friend Class Resource
Private Shared resourceMan As Global.System.Resources.ResourceManager
Private Shared resourceCulture As Global.System.Globalization.CultureInfo
<Global.System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")>
Friend Sub New()
MyBase.New
End Sub
'''<summary>
''' Returns the cached ResourceManager instance used by this class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>
Friend Shared ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
Get
If Object.ReferenceEquals(resourceMan, Nothing) Then
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Resource", GetType(Resource).Assembly)
resourceMan = temp
End If
Return resourceMan
End Get
End Property
'''<summary>
''' Overrides the current thread's CurrentUICulture property for all
''' resource lookups using this strongly typed resource class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>
Friend Shared Property Culture() As Global.System.Globalization.CultureInfo
Get
Return resourceCulture
End Get
Set
resourceCulture = value
End Set
End Property
'''<summary>
''' Looks up a localized string similar to &lt;Global&gt;
''' &lt;type name=&quot;&amp;lt;Module&amp;gt;&quot; /&gt;
''' &lt;type name=&quot;A&quot; Of=&quot;T&quot; base=&quot;System.Object&quot;&gt;
''' &lt;field name=&quot;x1&quot; type=&quot;A(Of T)&quot; /&gt;
''' &lt;field name=&quot;x2&quot; type=&quot;A(Of D)&quot; /&gt;
''' &lt;type name=&quot;B&quot; base=&quot;A(Of T)&quot;&gt;
''' &lt;field name=&quot;y1&quot; type=&quot;A(Of T).B&quot; /&gt;
''' &lt;field name=&quot;y2&quot; type=&quot;A(Of D).B&quot; /&gt;
''' &lt;type name=&quot;C&quot; base=&quot;A(Of T).B&quot; /&gt;
''' &lt;/type&gt;
''' &lt;type name=&quot;H&quot; Of=&quot;S&quot; base=&quot;System.Object&quot;&gt;
''' [rest of string was truncated]&quot;;.
'''</summary>
Friend Shared ReadOnly Property EmitSimpleBaseLine1() As String
Get
Return ResourceManager.GetString("EmitSimpleBaseLine1", resourceCulture)
End Get
End Property
End Class
End Namespace
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="EmitSimpleBaseLine1" xml:space="preserve">
<value>&lt;Global&gt;
&lt;type name="&amp;lt;Module&amp;gt;" /&gt;
&lt;type name="A" Of="T" base="System.Object"&gt;
&lt;field name="x1" type="A(Of T)" /&gt;
&lt;field name="x2" type="A(Of D)" /&gt;
&lt;type name="B" base="A(Of T)"&gt;
&lt;field name="y1" type="A(Of T).B" /&gt;
&lt;field name="y2" type="A(Of D).B" /&gt;
&lt;type name="C" base="A(Of T).B" /&gt;
&lt;/type&gt;
&lt;type name="H" Of="S" base="System.Object"&gt;
&lt;type name="I" base="A(Of T).H(Of S)" /&gt;
&lt;/type&gt;
&lt;/type&gt;
&lt;type name="D" base="System.Object"&gt;
&lt;type name="K" Of="T" base="System.Object"&gt;
&lt;type name="L" base="D.K(Of T)" /&gt;
&lt;/type&gt;
&lt;/type&gt;
&lt;type name="F" base="A(Of D)" /&gt;
&lt;type name="G" base="A(Of NS1.E).B" /&gt;
&lt;type name="J" base="A(Of D).H(Of D)" /&gt;
&lt;type name="M" base="System.Object" /&gt;
&lt;type name="N" base="D.K(Of M)" /&gt;
&lt;NS1&gt;
&lt;type name="E" base="D" /&gt;
&lt;/NS1&gt;
&lt;/Global&gt;</value>
</data>
</root>
......@@ -18,14 +18,8 @@
<RootNamespace>Microsoft.CodeAnalysis.VisualBasic.UnitTests</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Update="Resource.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resource.resx</DependentUpon>
</Compile>
<Content Include="Syntax\VBAllInOne.txt" />
<None Include="Resources\VBAllInOne.vb" />
<Compile Remove="Resources\VBAllInOne.vb" />
<Compile Remove="Resources\*.*" />
<EmbeddedResource Include="Resources\*.*" LogicalName="%(FileName)%(Extension)" />
</ItemGroup>
<ItemGroup>
<Import Include="IdentifierComparison = Microsoft.CodeAnalysis.CaseInsensitiveComparison" />
......@@ -35,13 +29,6 @@
<ItemGroup>
<Folder Include="My Project\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resource.resx">
<CustomToolNamespace>My.Resources</CustomToolNamespace>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resource.Designer.vb</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>
......
......@@ -2,12 +2,22 @@
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.IO
Imports System.Text
Imports Microsoft.CodeAnalysis
Imports Microsoft.CodeAnalysis.VisualBasic
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
Imports Roslyn.Test.Utilities
Public Class SyntaxFactsTests
Private Shared ReadOnly s_allInOneSource As String
Shared Sub New()
Using stream = New StreamReader(GetType(SyntaxFactsTests).Assembly.GetManifestResourceStream("AllInOne.vb"), Encoding.UTF8)
s_allInOneSource = stream.ReadToEnd()
End Using
End Sub
<Fact>
Public Sub IsKeyword1()
Assert.False(CType(Nothing, SyntaxToken).IsKeyword())
......@@ -1006,7 +1016,7 @@ End Namespace
<WorkItem(10841, "https://github.com/mono/mono/issues/10841")>
Public Sub AllowsLeadingOrTrailingImplicitLineContinuation()
Dim cu = SyntaxFactory.ParseCompilationUnit(My.Resources.Resource.VBAllInOne)
Dim cu = SyntaxFactory.ParseCompilationUnit(s_allInOneSource)
Assert.False(cu.ContainsDiagnostics, "Baseline has diagnostics.")
......@@ -1105,7 +1115,7 @@ End Namespace
<WorkItem(10841, "https://github.com/mono/mono/issues/10841")>
Public Sub AllowsLeadingOrTrailingImplicitLineContinuationNegativeTests()
Dim cu = SyntaxFactory.ParseCompilationUnit(My.Resources.Resource.VBAllInOne)
Dim cu = SyntaxFactory.ParseCompilationUnit(s_allInOneSource)
Assert.False(cu.ContainsDiagnostics, "Baseline has diagnostics.")
......
......@@ -35,13 +35,6 @@
<InternalsVisibleTo Include="Roslyn.Services.Test.Utilities" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities" />
</ItemGroup>
<ItemGroup>
<Compile Update="CSharpEditorResources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>CSharpEditorResources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Reference Include="System.ComponentModel.Composition" />
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="$(MicrosoftVisualStudioLanguageIntellisenseVersion)" />
......@@ -49,11 +42,7 @@
<PackageReference Include="Microsoft.VisualStudio.Threading" Version="$(MicrosoftVisualStudioThreadingVersion)" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="CSharpEditorResources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>CSharpEditorResources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Update="CSharpEditorResources.resx" GenerateSource="true" />
</ItemGroup>
<ItemGroup>
<PublicAPI Include="PublicAPI.Shipped.txt" />
......
......@@ -98,18 +98,10 @@
<InternalsVisibleTo Include="DynamicProxyGenAssembly2" Key="$(MoqPublicKey)" LoadsWithinVisualStudio="false" />
</ItemGroup>
<ItemGroup>
<Compile Update="EditorFeaturesResources.Designer.cs">
<DependentUpon>EditorFeaturesResources.resx</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="EditorFeaturesResources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>EditorFeaturesResources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Update="EditorFeaturesResources.resx" GenerateSource="true" />
</ItemGroup>
<ItemGroup>
<PublicAPI Include="PublicAPI.Shipped.txt" />
......
......@@ -24,7 +24,7 @@ private static string GetString(string resourceName)
{
if (s_codeAnalysisResourceManager == null)
{
s_codeAnalysisResourceManager = new ResourceManager("Microsoft.CodeAnalysis.CodeAnalysisResources", typeof(Compilation).Assembly);
s_codeAnalysisResourceManager = new ResourceManager(typeof(CodeAnalysisResources).FullName, typeof(Compilation).Assembly);
}
return s_codeAnalysisResourceManager.GetString(resourceName);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册