Skip to content

Commit a6bdca8

Browse files
committed
fix multiple projects issues
1 parent 9f9a09f commit a6bdca8

8 files changed

Lines changed: 9 additions & 13 deletions

File tree

snippets/csharp/System.Diagnostics/Process/Overview/ArgsEcho/Project.csproj renamed to snippets/csharp/System.Diagnostics/Process/ArgsEcho/Project.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
44
<TargetFramework>net10.0</TargetFramework>
5+
<AssemblyName>ArgsEcho</AssemblyName>
56
</PropertyGroup>
67
</Project>

snippets/csharp/System.Diagnostics/Process/Overview/ArgsEcho/processstartstatic3.cs renamed to snippets/csharp/System.Diagnostics/Process/ArgsEcho/processstartstatic3.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Place this code into a console project named ArgsEcho to build the argsecho.exe target.
1+
// This console project builds the ArgsEcho.exe target.
22

33
using System;
44

snippets/csharp/System.Diagnostics/Process/Overview/Project.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@
33
<OutputType>Exe</OutputType>
44
<TargetFramework>net10.0</TargetFramework>
55
</PropertyGroup>
6-
<ItemGroup>
7-
<Compile Remove="ArgsEcho/**/*.cs" />
8-
</ItemGroup>
96
</Project>

snippets/csharp/System.Diagnostics/Process/StandardOutput/Project.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@
33
<OutputType>Exe</OutputType>
44
<TargetFramework>net10.0</TargetFramework>
55
</PropertyGroup>
6-
<ItemGroup>
7-
<Compile Remove="Write500Lines/**/*.cs" />
8-
</ItemGroup>
96
</Project>

snippets/csharp/System.Diagnostics/Process/StandardOutput/Write500Lines/Project.csproj renamed to snippets/csharp/System.Diagnostics/Process/Write500Lines/Project.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
44
<TargetFramework>net10.0</TargetFramework>
5+
<AssemblyName>Write500Lines</AssemblyName>
56
</PropertyGroup>
67
</Project>

snippets/csharp/System.Diagnostics/Process/StandardOutput/Write500Lines/write500lines.cs renamed to snippets/csharp/System.Diagnostics/Process/Write500Lines/write500lines.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This example creates the Write500Lines.exe target used by the other examples in this section.
1+
// This project creates the Write500Lines.exe target used by the other examples in this section.
22

33
using System;
44

xml/System.Diagnostics/Process.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4568,7 +4568,7 @@ A thread in a process can migrate from processor to processor, with each migrati
45684568
45694569
The last two examples in this section use the <xref:System.Diagnostics.Process.Start*> method to launch an executable named *Write500Lines.exe*. The following example contains its source code.
45704570
4571-
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/Process/StandardOutput/Write500Lines/write500lines.cs":::
4571+
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/Process/Write500Lines/write500lines.cs":::
45724572
:::code language="fsharp" source="~/snippets/fsharp/System.Diagnostics/Process/StandardOutput/write500lines.fs":::
45734573
:::code language="vb" source="~/snippets/visualbasic/api/system.diagnostics/process/standardoutput/write500lines.vb":::
45744574
@@ -4718,7 +4718,7 @@ You can use asynchronous read operations to avoid these dependencies and their d
47184718
47194719
The last two examples in this section use the <xref:System.Diagnostics.Process.Start*> method to launch an executable named *Write500Lines.exe*. The following example contains its source code.
47204720
4721-
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/Process/StandardOutput/Write500Lines/write500lines.cs":::
4721+
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/Process/Write500Lines/write500lines.cs":::
47224722
:::code language="fsharp" source="~/snippets/fsharp/System.Diagnostics/Process/StandardOutput/write500lines.fs":::
47234723
:::code language="vb" source="~/snippets/visualbasic/api/system.diagnostics/process/standardoutput/write500lines.vb":::
47244724

xml/System.Diagnostics/ProcessStartInfo.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ If you use this property to set command-line arguments, <xref:System.Diagnostics
377377
## Examples
378378
The first example creates a small application (argsecho.exe) that echos its arguments to the console. The second example creates an application that invokes argsecho.exe to demonstrate different variations for the `Arguments` property.
379379
380-
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/Process/Overview/ArgsEcho/processstartstatic3.cs":::
380+
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/Process/ArgsEcho/processstartstatic3.cs":::
381381
:::code language="vb" source="~/snippets/visualbasic/System.Diagnostics/Process/Overview/processstartstatic3.vb":::
382382
383383
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/Process/Overview/processstartstatic2.cs":::
@@ -1048,7 +1048,7 @@ The profile is unloaded after the new process and all child processes it has cre
10481048
10491049
The last two examples in this section use the <xref:System.Diagnostics.Process.Start*> method to launch an executable named *Write500Lines.exe*. The following example contains its source code.
10501050
1051-
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/Process/StandardOutput/Write500Lines/write500lines.cs":::
1051+
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/Process/Write500Lines/write500lines.cs":::
10521052
:::code language="vb" source="~/snippets/visualbasic/api/system.diagnostics/process/standardoutput/write500lines.vb":::
10531053
10541054
The following example shows how to read from a redirected error stream and wait for the child process to exit. It avoids a deadlock condition by calling `p.StandardError.ReadToEnd` before `p.WaitForExit`. A deadlock condition can result if the parent process calls `p.WaitForExit` before `p.StandardError.ReadToEnd` and the child process writes enough text to fill the redirected stream. The parent process would wait indefinitely for the child process to exit. The child process would wait indefinitely for the parent to read from the full <xref:System.Diagnostics.Process.StandardError*> stream.
@@ -1189,7 +1189,7 @@ You can use asynchronous read operations to avoid these dependencies and their d
11891189
11901190
The last two examples in this section use the <xref:System.Diagnostics.Process.Start*> method to launch an executable named *Write500Lines.exe*. The following example contains its source code.
11911191
1192-
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/Process/StandardOutput/Write500Lines/write500lines.cs":::
1192+
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/Process/Write500Lines/write500lines.cs":::
11931193
:::code language="vb" source="~/snippets/visualbasic/api/system.diagnostics/process/standardoutput/write500lines.vb":::
11941194
11951195
The following example shows how to read from a redirected stream and wait for the child process to exit. The example avoids a deadlock condition by calling `p.StandardOutput.ReadToEnd` before `p.WaitForExit`. A deadlock condition can result if the parent process calls `p.WaitForExit` before `p.StandardOutput.ReadToEnd` and the child process writes enough text to fill the redirected stream. The parent process would wait indefinitely for the child process to exit. The child process would wait indefinitely for the parent to read from the full <xref:System.Diagnostics.Process.StandardOutput*> stream.

0 commit comments

Comments
 (0)