Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Omit Environment.Version from CodeDom generated files (#35458)
Browse files Browse the repository at this point in the history
* Omit Environment.Version from CodeDom generated files

Contributes to dotnet/coreclr#22664

* Disable tests on .NET Framework
  • Loading branch information
jkotas authored Feb 21, 2019
1 parent 3ec07db commit 89f72f6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2521,9 +2521,6 @@ private void GenerateCompileUnitStart(CodeCompileUnit e)
Output.WriteLine(SR.AutoGen_Comment_Line1);
Output.Write("// ");
Output.WriteLine(SR.AutoGen_Comment_Line2);
Output.Write("// ");
Output.Write(SR.AutoGen_Comment_Line3);
Output.WriteLine(Environment.Version.ToString());
Output.WriteLine("//");
Output.Write("// ");
Output.WriteLine(SR.AutoGen_Comment_Line4);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2183,9 +2183,6 @@ protected override void GenerateCompileUnitStart(CodeCompileUnit e)
Output.WriteLine(SR.AutoGen_Comment_Line1);
Output.Write("' ");
Output.WriteLine(SR.AutoGen_Comment_Line2);
Output.Write("' ");
Output.Write(SR.AutoGen_Comment_Line3);
Output.WriteLine(Environment.Version.ToString());
Output.WriteLine("'");
Output.Write("' ");
Output.WriteLine(SR.AutoGen_Comment_Line4);
Expand Down
3 changes: 0 additions & 3 deletions src/System.CodeDom/src/Resources/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@
<data name="AutoGen_Comment_Line2" xml:space="preserve">
<value>This code was generated by a tool.</value>
</data>
<data name="AutoGen_Comment_Line3" xml:space="preserve">
<value>Runtime Version:</value>
</data>
<data name="AutoGen_Comment_Line4" xml:space="preserve">
<value>Changes to this file may cause incorrect behavior and will be lost if</value>
</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ public void Arrays_WithinArrays_Empty_NonPrimitiveTypes()
}

[Fact]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
public void MetadataAttributes()
{
RemoteInvoke(() =>
Expand Down Expand Up @@ -739,7 +740,6 @@ public void MetadataAttributes()
@"//------------------------------------------------------------------------------
// <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.
Expand Down Expand Up @@ -1449,6 +1449,7 @@ public struct structC {
}

[Fact]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
public void RegionsSnippetsAndLinePragmas()
{
RemoteInvoke(() =>
Expand Down Expand Up @@ -1630,7 +1631,6 @@ public void RegionsSnippetsAndLinePragmas()
//------------------------------------------------------------------------------
// <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.
Expand Down Expand Up @@ -2571,6 +2571,7 @@ public int TestMethod03() {
}

[Fact]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
public void ProviderSupports()
{
RemoteInvoke(() =>
Expand Down Expand Up @@ -3125,7 +3126,6 @@ public void ProviderSupports()
@"//------------------------------------------------------------------------------
// <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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ Return arrayType(1).number
}

[Fact]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
public void MetadataAttributes()
{
RemoteInvoke(() =>
Expand Down Expand Up @@ -705,7 +706,6 @@ public void MetadataAttributes()
@"'------------------------------------------------------------------------------
' <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.
Expand Down Expand Up @@ -1399,6 +1399,7 @@ End Class
}

[Fact]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
public void RegionsSnippetsAndLinePragmas()
{
RemoteInvoke(() =>
Expand Down Expand Up @@ -1580,7 +1581,6 @@ public void RegionsSnippetsAndLinePragmas()
'------------------------------------------------------------------------------
' <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.
Expand Down Expand Up @@ -2362,6 +2362,7 @@ End Class
}

[Fact]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
public void ProviderSupports()
{
RemoteInvoke(() =>
Expand Down Expand Up @@ -2926,7 +2927,6 @@ public void ProviderSupports()
@"'------------------------------------------------------------------------------
' <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.
Expand Down

0 comments on commit 89f72f6

Please sign in to comment.