diff --git a/src/System.CodeDom/src/Microsoft/CSharp/CSharpCodeGenerator.cs b/src/System.CodeDom/src/Microsoft/CSharp/CSharpCodeGenerator.cs
index 93cbac4bb17f..be4185a21228 100644
--- a/src/System.CodeDom/src/Microsoft/CSharp/CSharpCodeGenerator.cs
+++ b/src/System.CodeDom/src/Microsoft/CSharp/CSharpCodeGenerator.cs
@@ -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);
diff --git a/src/System.CodeDom/src/Microsoft/VisualBasic/VBCodeGenerator.cs b/src/System.CodeDom/src/Microsoft/VisualBasic/VBCodeGenerator.cs
index 6d17b3665825..394c936d8a64 100644
--- a/src/System.CodeDom/src/Microsoft/VisualBasic/VBCodeGenerator.cs
+++ b/src/System.CodeDom/src/Microsoft/VisualBasic/VBCodeGenerator.cs
@@ -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);
diff --git a/src/System.CodeDom/src/Resources/Strings.resx b/src/System.CodeDom/src/Resources/Strings.resx
index 1547eada5a04..4458b9cd7bd1 100644
--- a/src/System.CodeDom/src/Resources/Strings.resx
+++ b/src/System.CodeDom/src/Resources/Strings.resx
@@ -119,9 +119,6 @@
This code was generated by a tool.
-
- Runtime Version:
-
Changes to this file may cause incorrect behavior and will be lost if
diff --git a/src/System.CodeDom/tests/System/CodeDom/Compiler/CSharpCodeGenerationTests.cs b/src/System.CodeDom/tests/System/CodeDom/Compiler/CSharpCodeGenerationTests.cs
index b3d06723e214..5ce61887d494 100644
--- a/src/System.CodeDom/tests/System/CodeDom/Compiler/CSharpCodeGenerationTests.cs
+++ b/src/System.CodeDom/tests/System/CodeDom/Compiler/CSharpCodeGenerationTests.cs
@@ -612,6 +612,7 @@ public void Arrays_WithinArrays_Empty_NonPrimitiveTypes()
}
[Fact]
+ [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
public void MetadataAttributes()
{
RemoteInvoke(() =>
@@ -739,7 +740,6 @@ public void MetadataAttributes()
@"//------------------------------------------------------------------------------
//
// 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.
@@ -1449,6 +1449,7 @@ public struct structC {
}
[Fact]
+ [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
public void RegionsSnippetsAndLinePragmas()
{
RemoteInvoke(() =>
@@ -1630,7 +1631,6 @@ public void RegionsSnippetsAndLinePragmas()
//------------------------------------------------------------------------------
//
// 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.
@@ -2571,6 +2571,7 @@ public int TestMethod03() {
}
[Fact]
+ [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
public void ProviderSupports()
{
RemoteInvoke(() =>
@@ -3125,7 +3126,6 @@ public void ProviderSupports()
@"//------------------------------------------------------------------------------
//
// 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.
diff --git a/src/System.CodeDom/tests/System/CodeDom/Compiler/VBCodeGenerationTests.cs b/src/System.CodeDom/tests/System/CodeDom/Compiler/VBCodeGenerationTests.cs
index 3ec43eecbb5f..b2ec2ab66089 100644
--- a/src/System.CodeDom/tests/System/CodeDom/Compiler/VBCodeGenerationTests.cs
+++ b/src/System.CodeDom/tests/System/CodeDom/Compiler/VBCodeGenerationTests.cs
@@ -578,6 +578,7 @@ Return arrayType(1).number
}
[Fact]
+ [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
public void MetadataAttributes()
{
RemoteInvoke(() =>
@@ -705,7 +706,6 @@ public void MetadataAttributes()
@"'------------------------------------------------------------------------------
'
' 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.
@@ -1399,6 +1399,7 @@ End Class
}
[Fact]
+ [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
public void RegionsSnippetsAndLinePragmas()
{
RemoteInvoke(() =>
@@ -1580,7 +1581,6 @@ public void RegionsSnippetsAndLinePragmas()
'------------------------------------------------------------------------------
'
' 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.
@@ -2362,6 +2362,7 @@ End Class
}
[Fact]
+ [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
public void ProviderSupports()
{
RemoteInvoke(() =>
@@ -2926,7 +2927,6 @@ public void ProviderSupports()
@"'------------------------------------------------------------------------------
'
' 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.