Skip to content

[.NET 6] [Source Compat Failure] Greenshot & ControlzEx apps doesn't build with .net6.0 SDK #4061

@jiangzeng01

Description

@jiangzeng01

Application Name: Greenshot
OS: Windows 10 RS5
CPU: X64
.NET Build Number: 6.0.100-preview.1.21071.10
Project Location: https://github.com/greenshot/greenshot

Verify Scenarios:
1). Windows 10 RS5 X64 + .NET Core SDK build 6.0.100-preview.1.21071.10: Fail
2). Windows 10 RS5 X64 + .NET Core SDK build 5.0.102: Pass

Repro steps

  1. Source Code check at https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1268782
  2. go to src\Greenshot
  3. dotnet build

Expected Result:
Build succeeded

Actual Result:

C:\Users\valtunc\Desktop\AppSources\greenshot\src\Greenshot.Addons\obj\Debug\net5.0-windows\Views\ExportNotificationView.g.cs(49,18): error CS1504: Source file '..\..\..\Views\ExportNotificationView.xaml' could not be opened -- Could not find file. [C:\Users\valtunc\Desktop\AppSources\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]

C:\Users\valtunc\Desktop\AppSources\greenshot\src\Greenshot.Addons\obj\Debug\net5.0-windows\Views\ExportNotificationView.g.cs(70,21): error CS1504: Source file '..\..\..\Views\ExportNotificationView.xaml' could not be opened -- Could not find file. [C:\Users\valtunc\Desktop\AppSources\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]
C:\Users\valtunc\Desktop\AppSources\greenshot\src\Greenshot.Addons\obj\Debug\net5.0-windows\Views\FileConfigPartView.g.cs(45,18): error CS1504: Source file '..\..\..\Views\FileConfigPartView.xaml' could not be opened -- Could not find file. [C:\Users\valtunc\Desktop\AppSources\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]
C:\Users\valtunc\Desktop\AppSources\greenshot\src\Greenshot.Addons\obj\Debug\net5.0-windows\Views\FileConfigPartView.g.cs(66,21): error CS1504: Source file '..\..\..\Views\FileConfigPartView.xaml' could not be opened -- Could not find file. [C:\Users\valtunc\Desktop\AppSources\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]
C:\Users\valtunc\Desktop\AppSources\greenshot\src\Greenshot.Addons\obj\Debug\net5.0-windows\Views\UploadView.g.cs(58,21): error CS1504: Source file '..\..\..\Views\UploadView.xaml' could not be opened -- Could not find file. [C:\Users\valtunc\Desktop\AppSources\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]
    95 Warning(s)
    5 Error(s)

@dotnet-actwx-bot @dotnet/compat

Metadata

Metadata

Assignees

Labels

InvestigateRequires further investigation by the WPF team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions