Bug 2605074: [dotnet-sdk-10.0.100-rtm.25510.110] The exported log text is incomplete after running command "dotnet watch test >.\log.txt".
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
**Application Name**: Globaltools
**OS**: Windows 10 22H2
**CPU**: X64
**.NET Build Number**: dotnet-sdk-10.0.100-rtm.25510.110
**AppSource checking at**: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2605074
**Verify Scenarios**
Windows10 22h2 x64 + dotnet-sdk-9.0.305: Pass
Windows10 22h2 x64 + dotnet-sdk-10.0.100-rc.2.25475.105: Pass
Windows10 22h2 x64 + dotnet-sdk-10.0.100-rc.2.25476.107: Fail
Windows10 22h2 x64 + dotnet-sdk-10.0.100-rtm.25510.110: Fail
**Description:**
When we run command "```dotnet watch test >.\log.txt```" to export the log as a .txt file with dotnet-sdk-10.0.100-rtm.25510.110, the generated text content in log file is different from the content that shows in the command. This change began with dotnet-sdk-10.0.100-rc.2.25476.107.
**Repro steps**:
The machine has dotnet-sdk-10.0.100-rtm.25510.110 installed.
1. Open cmd in .\DotNETCoreConsole\DotNETCoreConsole.
2. Run command "```dotnet watch test >.\log.txt```".
3. Open .\DotNETCoreConsole\DotNETCoreConsole\log.txt.
**Expected Result:**
```
dotnet watch ⚠ C:\Program Files\dotnet\sdk\10.0.100-rtm.25510.110\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(32,5): warning NETSDK1138: The target framework 'netcoreapp3.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\Users\Desktop\DotNETCoreConsole\DotNETCoreConsole\DotNETCoreConsole.csproj]
dotnet watch ⚠ C:\Program Files\dotnet\sdk\10.0.100-rtm.25510.110\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(32,5): warning NETSDK1138: The target framework 'netcoreapp3.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
dotnet watch ⚠ C:\Users\Desktop\DotNETCoreConsole\DotNETCoreConsole\DotNETCoreConsole.csproj : warning NU1900: Error occurred while getting package vulnerability data: Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/internal/_packaging/9.0.306-servicing.25469.30-2-shipping/nuget/v3/index.json.
dotnet watch ⌚ Exited
dotnet watch ⏳ Waiting for a file to change before restarting ...
```
**Actual Result:**
```
Determining projects to restore...
C:\Program Files\dotnet\sdk\10.0.100-rtm.25510.110\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(32,5): warning NETSDK1138: The target framework 'netcoreapp3.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\Users\v-yibiaozhu\Desktop\DotNETCoreConsole\DotNETCoreConsole\DotNETCoreConsole.csproj]
C:\Program Files\dotnet\sdk\10.0.100-rtm.25510.110\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(32,5): warning NETSDK1138: The target framework 'netcoreapp3.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\Users\v-yibiaozhu\Desktop\DotNETCoreConsole\DotNETCoreConsole\DotNETCoreConsole.csproj]
C:\Users\v-yibiaozhu\Desktop\DotNETCoreConsole\DotNETCoreConsole\DotNETCoreConsole.csproj : warning NU1900: Error occurred while getting package vulnerability data: Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/internal/_packaging/9.0.306-servicing.25469.30-2-shipping/nuget/v3/index.json.
All projects are up-to-date for restore.
```

**DotNet Info:**
```
.NET SDK:
Version: 10.0.100-rtm.25510.110
Commit: d7b32678f4
Workload version: 10.0.100-manifests.cff8fab5
MSBuild version: 18.0.0-preview-25510-110+d7b32678f
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-rtm.25510.110\
Host:
Version: 10.0.0-rtm.25510.110
Architecture: x64
Commit: d7b32678f4
.NET SDKs installed:
10.0.100-rtm.25510.110 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.0-rtm.25510.110 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.0-rtm.25510.110 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 10.0.0-rtm.25510.110 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
```
@dotnet-actwx-bot @dotnet/compat
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.