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

Windows: Build Failure (DevToys.Business) #1167

Closed
CoreyHayward opened this issue May 14, 2024 · 2 comments · Fixed by #1168
Closed

Windows: Build Failure (DevToys.Business) #1167

CoreyHayward opened this issue May 14, 2024 · 2 comments · Fixed by #1168
Labels
bug Something isn't working devtoys-v2.0 DevToys v2.0

Comments

@CoreyHayward
Copy link

Current behavior

Currently attempting to build and run the DevToys.Windows project in VS 2022 but getting the following error when attempting to build:

Severity	Code	Description	Project	File	Line	Suppression State	Details
Error (active)	CS0016	Could not write to output file 'D:\source\CoreyHayward\DevToys\obj\AnyCPU\DevToys.Business\Debug\net8.0\generated\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.RelayCommandGenerator\DevToys.Business.ViewModels.ToolPageViewModel.ToggleSelectedMenuItemFavorite.g.cs' -- 'Could not find a part of the path 'D:\source\CoreyHayward\DevToys\obj\AnyCPU\DevToys.Business\Debug\net8.0\generated\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.RelayCommandGenerator\DevToys.Business.ViewModels.ToolPageViewModel.ToggleSelectedMenuItemFavorite.g.cs'.'	DevToys.Business (net8.0)	D:\source\CoreyHayward\DevToys\src\app\dev\DevToys.Business\CSC	1		

I have followed the steps in the Contributing.MD guide

How to reproduce it (as minimally and precisely as possible)

  1. Clone the repo.
  2. Run .\init.ps1
  3. Open DevToys-Windows.sln (Visual Studio 2022)
  4. Build DevToys.Windows

Expected behavior

Builds correctly

Screenshots

image

Workaround

No response

Affected platforms

Windows

Affected DevToys kind

DevToys (app with GUI)

DevToys Version

Commit: 79c33ce

Relevant Assets/Logs

No response

@CoreyHayward CoreyHayward added bug Something isn't working untriaged labels May 14, 2024
@veler
Copy link
Collaborator

veler commented May 16, 2024

Hi,
I suspect you encounter this issue because your Windows doesn't have LongPath enabled. By default, Windows paths are limited to 255 characters, and the one you shared is longer than that.

It's not the first time someone encounter a similar issue. I just made a few changes to give a heads up when building and when running init.ps1.

image

image

Here is the PR: #1168

@veler veler removed the untriaged label May 16, 2024
@CoreyHayward
Copy link
Author

@veler Yep, enabling long paths has fixed it! thanks very much!

@btiteux btiteux added the devtoys-v2.0 DevToys v2.0 label May 26, 2024
@btiteux btiteux linked a pull request May 26, 2024 that will close this issue
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devtoys-v2.0 DevToys v2.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants