Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.0.100-rtm.20508.12] Greenshot failed to build #3628

Closed
jiangzeng01 opened this issue Oct 10, 2020 · 8 comments
Closed

[5.0.100-rtm.20508.12] Greenshot failed to build #3628

jiangzeng01 opened this issue Oct 10, 2020 · 8 comments

Comments

@jiangzeng01
Copy link

jiangzeng01 commented Oct 10, 2020

Application Name: Greenshot
OS: Windows 10 RS5
CPU: X64
.NET Build Number: 5.0.100-rtm.20508.12
App Source:
\\appcompatsrv\Appcompat\DotNetCore\AppSource\SingleFileP0AppsTarget5\AppSources\greenshot
DevDiv bug:
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1228900

Repro steps:
Copy \\appcompatsrv\Appcompat\DotNetCore\AppSource\SingleFileP0AppsTarget5\AppSources\greenshot to local machine.
Open command prompt windows as Administrator.
Navigate to "greenshot\src\Greenshot".
Run "dotnet build" command to build the application.

Expected Result:
The build process should successful.
Actual Result:
The build process stopped due to the error message.

Findings:
According to the error message, it was finding the xaml files from obj\Debug\net5.0-windows\Views. We tried deleleted both bin and obj folder and rebuild again, it still get the same error.

Exception from build process:

C:\SingleFileAppsTest\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:\SingleFileAppsTest\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]
C:\SingleFileAppsTest\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:\SingleFileAppsTest\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]
C:\SingleFileAppsTest\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:\SingleFileAppsTest\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]
C:\SingleFileAppsTest\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:\SingleFileAppsTest\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]
C:\SingleFileAppsTest\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:\SingleFileAppsTest\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]

The app works with .NET5 RC2, but failed to build with .NET 5 RTM.

CC @dotnet-actwx-bot

@ryalanms
Copy link
Member

@jiangzeng01: I am unable to access the share. Could you attach the project to the bug? Thanks.

@jiangzeng01
Copy link
Author

jiangzeng01 commented Oct 13, 2020

@ryalanms You can also use GitHub source:
https://github.com/greenshot/greenshot.git

SDK: Latest RTM build: 5.0.100-rtm.20509.5

Build steps:
Open a cmd window in the directory where you cloned this repo
run dotnet build src/Greenshot.sln

Errors:

D:\repos\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. [D:\repos\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]
D:\repos\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. [D:\repos\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]
D:\repos\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. [D:\repos\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]
D:\repos\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. [D:\repos\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]
D:\repos\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. [D:\repos\greenshot\src\Greenshot.Addons\Greenshot.Addons.csproj]

@ryalanms
Copy link
Member

This should be fixed with #3637. Thanks.

@jiangzeng01
Copy link
Author

Thanks @ryalanms
According the conversation in #3637, the fix will come in .NET 5 servicing release, so is it will not be in .NET 5 RTM release?

@ryalanms
Copy link
Member

This bug is fixed in .NET 5.0 RTM. The 'fix' that was reverted to fix this bug will be updated and reapplied in a servicing release (5.0.2xx).

@ryalanms ryalanms reopened this Oct 15, 2020
@jiangzeng01
Copy link
Author

@ryalanms Thanks for update, we will verify the bug with new RTM builds then.

@ryalanms
Copy link
Member

Thanks.

@jiangzeng01
Copy link
Author

Verified with 5.0.100-rtm.20515.8, the issue was fixed, so close.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants