Tooling-Windows-Submodule icon indicating copy to clipboard operation
Tooling-Windows-Submodule copied to clipboard

Space in path prevents solution generation

Open ghost1372 opened this issue 2 years ago • 0 comments

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
  • [X] 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)
  • [X] 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 avatar Nov 05 '23 10:11 ghost1372