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

The default generated file path exceeds the length limit 260 for EnvironmentVariablesUILib.csproj #37685

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yeelam-gordon
Copy link

@yeelam-gordon yeelam-gordon commented Feb 28, 2025

Summary of the Pull Request

The default generated file path exceeds the length limit 260 for EnvironmentVariablesUILib.csproj
e.g.
D:\a_work\1\s\src\modules\EnvironmentVariables\EnvironmentVariablesUILib\obj\Release\generated\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.ObservablePropertyGenerator\EnvironmentVariablesUILib.Models.ProfileVariablesSet.g.cs is too long, and it caused issue.

How to repro locally

Make a longer path, e.g. %USERPROFILE%\source\repos\Powertoys
Then try to build the EnvironmentVariablesUILib.csproj (Do nuget restore EnvironmentVariablesUILib.csproj first) by the following:
msbuild /p:Configuration=Debug /p:EnsureSourceGeneratorsRun=true /p:EmitCompilerGeneratedFiles=true EnvironmentVariablesUILib.csproj

PR Checklist

…uild agent. Using a shorter path as a workaround.
@yeelam-gordon
Copy link
Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

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

Successfully merging this pull request may close these issues.

1 participant