9 instantiations of SubsystemVersion
Microsoft.CodeAnalysis (9)
Compilation\SubsystemVersion.cs (9)
43public static SubsystemVersion None => new SubsystemVersion(); 48public static SubsystemVersion Windows2000 => new SubsystemVersion(5, 0); 53public static SubsystemVersion WindowsXP => new SubsystemVersion(5, 1); 58public static SubsystemVersion WindowsVista => new SubsystemVersion(6, 0); 63public static SubsystemVersion Windows7 => new SubsystemVersion(6, 1); 68public static SubsystemVersion Windows8 => new SubsystemVersion(6, 2); 131version = new SubsystemVersion(majorValue, minorValue); 145return new SubsystemVersion(major, minor); 165return new SubsystemVersion(4, 0);
55 references to SubsystemVersion
Microsoft.CodeAnalysis (25)
Compilation\Compilation.cs (3)
2265SubsystemVersion subsystemVersion; 2266if (emitOptions.SubsystemVersion.Equals(SubsystemVersion.None) || !emitOptions.SubsystemVersion.IsValid) 2268subsystemVersion = SubsystemVersion.Default(outputKind, platform);
Compilation\DeterministicKeyBuilder.cs (1)
422static void writeSubsystemVersion(JsonWriter writer, SubsystemVersion version)
Compilation\SubsystemVersion.cs (14)
28public readonly struct SubsystemVersion : IEquatable<SubsystemVersion> 43public static SubsystemVersion None => new SubsystemVersion(); 48public static SubsystemVersion Windows2000 => new SubsystemVersion(5, 0); 53public static SubsystemVersion WindowsXP => new SubsystemVersion(5, 1); 58public static SubsystemVersion WindowsVista => new SubsystemVersion(6, 0); 63public static SubsystemVersion Windows7 => new SubsystemVersion(6, 1); 68public static SubsystemVersion Windows8 => new SubsystemVersion(6, 2); 82public static bool TryParse(string str, out SubsystemVersion version) 84version = SubsystemVersion.None; 143public static SubsystemVersion Create(int major, int minor) 154internal static SubsystemVersion Default(OutputKind outputKind, Platform platform) 190return obj is SubsystemVersion && Equals((SubsystemVersion)obj); 198public bool Equals(SubsystemVersion other)
Emit\EmitOptions.cs (7)
48public SubsystemVersion SubsystemVersion { get; private set; } 132SubsystemVersion subsystemVersion, 161SubsystemVersion subsystemVersion, 192SubsystemVersion subsystemVersion, 225SubsystemVersion subsystemVersion = default, 362if (!SubsystemVersion.Equals(SubsystemVersion.None) && !SubsystemVersion.IsValid) 484public EmitOptions WithSubsystemVersion(SubsystemVersion subsystemVersion)
Microsoft.CodeAnalysis.CSharp (5)
CommandLine\CSharpCommandLineParser.cs (5)
87SubsystemVersion subsystemVersion = SubsystemVersion.None; 1115SubsystemVersion version = SubsystemVersion.None; 1116if (SubsystemVersion.TryParse(value, out version))
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
CommandLineTests.cs (6)
5684Assert.Equal(SubsystemVersion.Create(4, 0), parsedArgs.EmitOptions.SubsystemVersion); 5690Assert.Equal(SubsystemVersion.Create(0, 0), parsedArgs.EmitOptions.SubsystemVersion); 5694Assert.Equal(SubsystemVersion.Create(0, 0), parsedArgs.EmitOptions.SubsystemVersion); 5698Assert.Equal(SubsystemVersion.Create(3, 99), parsedArgs.EmitOptions.SubsystemVersion); 5702Assert.Equal(SubsystemVersion.Create(5, 333), parsedArgs.EmitOptions.SubsystemVersion); 7343var peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(subsystemVersion: SubsystemVersion.Create(5, 1))));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\EmitMetadataTests.cs (1)
2417WithSubsystemVersion(SubsystemVersion.WindowsXP);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\CompilationAPITests.cs (1)
403subsystemVersion: SubsystemVersion.Create(1000000, -1000000),
Microsoft.CodeAnalysis.Rebuild (1)
CompilationFactory.cs (1)
152subsystemVersion: SubsystemVersion.Create(peHeader.MajorSubsystemVersion, peHeader.MinorSubsystemVersion)),
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
DeterministicKeyBuilderTests.cs (1)
550var emitOptions = EmitOptions.WithSubsystemVersion(SubsystemVersion.Create(major, minor));
Microsoft.CodeAnalysis.UnitTests (4)
Emit\EmitOptionsTests.cs (4)
57TestProperty((old, value) => old.WithSubsystemVersion(value), opt => opt.SubsystemVersion, SubsystemVersion.Windows2000); 109subsystemVersion: SubsystemVersion.Windows2000, 122subsystemVersion: SubsystemVersion.Windows2000, 136subsystemVersion: SubsystemVersion.Windows2000,
Microsoft.CodeAnalysis.VisualBasic (4)
CommandLine\VisualBasicCommandLineParser.vb (4)
111Dim ssVersion As SubsystemVersion = SubsystemVersion.None 1105Dim version As SubsystemVersion = Nothing 1106If SubsystemVersion.TryParse(value, version) Then
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (6)
CommandLineTests.vb (6)
1805Assert.Equal(SubsystemVersion.Create(4, 0), parsedArgs.EmitOptions.SubsystemVersion) 1811Assert.Equal(SubsystemVersion.Create(0, 0), parsedArgs.EmitOptions.SubsystemVersion) 1815Assert.Equal(SubsystemVersion.Create(0, 0), parsedArgs.EmitOptions.SubsystemVersion) 1819Assert.Equal(SubsystemVersion.Create(3, 99), parsedArgs.EmitOptions.SubsystemVersion) 1823Assert.Equal(SubsystemVersion.Create(5, 333), parsedArgs.EmitOptions.SubsystemVersion) 6497Dim peHeaders = New PEHeaders(comp.EmitToStream(New EmitOptions(subsystemVersion:=SubsystemVersion.Create(5, 1))))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\CompilationAPITests.vb (1)
499subsystemVersion:=SubsystemVersion.Create(1000000, -1000000),