• Home
  • Raw
  • Download

Lines Matching +full:in +full:- +full:process

2 // Protocol Buffers - Google's data interchange format
5 // Use of this source code is governed by a BSD-style
6 // license that can be found in the LICENSE file or at
7 // https://developers.google.com/open-source/licenses/bsd
23 …/// this setting doesn't accurately simulate compilation with an actual old pre-roslyn C# compiler.
42 …// If "ref struct" types are used in the generated code, compilation with an old compiler will fai… in GeneratedCodeCompilesWithOldCsharpCompiler()
43 …// "XYZ is obsolete: 'Types with embedded references are not supported in this version of your com… in GeneratedCodeCompilesWithOldCsharpCompiler()
44 … GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE to avoid the use of ref struct in the generated code. in GeneratedCodeCompilesWithOldCsharpCompiler()
45 var compatibilityFlag = "-define:GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE"; in GeneratedCodeCompilesWithOldCsharpCompiler()
50 …var args = $"-langversion:3 -nologo -nowarn:1691 -target:library {compatibilityFlag} -reference:{t… in GeneratedCodeCompilesWithOldCsharpCompiler()
55 /// Invoke an old C# compiler in a subprocess and check it finished successful.
61 using var process = new Process(); in RunOldCsharpCompilerAndCheckSuccess()
67 process.StartInfo.FileName = oldCsharpCompilerPath; in RunOldCsharpCompilerAndCheckSuccess()
68 process.StartInfo.RedirectStandardOutput = true; in RunOldCsharpCompilerAndCheckSuccess()
69 process.StartInfo.RedirectStandardError = true; in RunOldCsharpCompilerAndCheckSuccess()
70 process.StartInfo.UseShellExecute = false; in RunOldCsharpCompilerAndCheckSuccess()
71 process.StartInfo.Arguments = args; in RunOldCsharpCompilerAndCheckSuccess()
72 process.StartInfo.WorkingDirectory = workingDirectory; in RunOldCsharpCompilerAndCheckSuccess()
74 process.OutputDataReceived += (sender, e) => in RunOldCsharpCompilerAndCheckSuccess()
81 process.ErrorDataReceived += (sender, e) => in RunOldCsharpCompilerAndCheckSuccess()
89 process.Start(); in RunOldCsharpCompilerAndCheckSuccess()
91 process.BeginErrorReadLine(); in RunOldCsharpCompilerAndCheckSuccess()
92 process.BeginOutputReadLine(); in RunOldCsharpCompilerAndCheckSuccess()
94 process.WaitForExit(); in RunOldCsharpCompilerAndCheckSuccess()
95 Assert.AreEqual(0, process.ExitCode); in RunOldCsharpCompilerAndCheckSuccess()