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

Space in path prevents solution generation #148

Open
2 of 20 tasks
ghost1372 opened this issue Nov 5, 2023 · 0 comments
Open
2 of 20 tasks

Space in path prevents solution generation #148

ghost1372 opened this issue Nov 5, 2023 · 0 comments
Assignees
Labels
bug 🐛 Something isn't working

Comments

@ghost1372
Copy link

Describe the bug

i want to use Labs Source Code and Components but there is some issues for generating solutions,

Issue 1:
there is a bat file called: OpenSolution.bat
when i run this file, i get some error:

FilePath: M:\Github Clone\Labs-Windows\components\TitleBar

Error:

Get-Item : Cannot find path 'M:\Github' because it does not exist.
At M:\Github Clone\Labs-Windows\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1:43
char:19
+ $componentName = (Get-Item $componentPath -ErrorAction Stop).Name
+                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (M:\Github:String) [Get-Item], ItemNotFoun
   dException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

i can bypass this issue with this command:

.\GenerateSingleSampleHeads.ps1 -componentPath "M:\Github Clone\Labs-Windows\components\TitleBar"

it seems that space in=> Github Clone caused issue.

Issue 2:
after that i fixed path issue, command will be executed and get another .Net version issue, tooling use some specific .net version and in my OS is not installed, i can change .net version in global.json file and fix this issue.

if possible this can be great if tooling can detect .net version installed on user OS and use it.

Issue 3:
after fixing above issues, there is a new issue:

SlnGen : error : Project file "M:\Github Clone\Labs-Windows\components\TitleBar\Clone\Labs-Windows\components\TitleBar\TitleBar.sln" does not exist

we can see that a Clone and other.... added end of the path.

Steps to reproduce

Use OpenSolution.bat file

Expected behavior

Sln should be generated without any issues

Screenshots

No response

Code Platform

  • UWP
  • WinAppSDK / WinUI 3
  • Web Assembly (WASM)
  • Android
  • iOS
  • MacOS
  • Linux / GTK

Windows Build Number

  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 11 21H2 (Build 22000)
  • Other (specify)

Other Windows Build number

No response

App minimum and target SDK version

  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Other (specify)

Other SDK version

No response

Visual Studio Version

2022

Visual Studio Build Number

No response

Device form factor

No response

Additional context

No response

Help us help you

No, I'm unable to contribute a solution.

@ghost1372 ghost1372 added the bug 🐛 Something isn't working label Nov 5, 2023
@Arlodotexe Arlodotexe changed the title Can not generate Solution Space in path prevents solution generation Nov 10, 2023
@Arlodotexe Arlodotexe self-assigned this Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants