krauthaufen / Adaptify

MIT License
38 stars 3 forks source link

adaptify tool cannot handle relative project paths #32

Closed haraldsteinlechner closed 1 year ago

haraldsteinlechner commented 1 year ago
dotnet adaptify --local --force src\PRo3D.2D3DLinking\PRo3D.Linking.fsproj
Unhandled exception. System.UriFormatException: Invalid URI: The format of the URI could not be determined.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
   at System.Uri..ctor(String uriString)
   at Ionide.ProjInfo.VisualTree.relativePathOf(String fromPath, String toPath) in /_//src/Ionide.ProjInfo/VisualTree.fs:line 22
   at Ionide.ProjInfo.VisualTree.visualPathVSBehaviour(String projPath, String filePath) in /_//src/Ionide.ProjInfo/VisualTree.fs:line 30
   at Ionide.ProjInfo.VisualTree.getVisualPath(FSharpOption`1 linkMetadata, FSharpOption`1 fullpathMetadata, String identity, String projPath) in /_//src/Ionide.ProjInfo/VisualTree.fs:line 55
   at Ionide.ProjInfo.VisualTree.getCompileProjectItem(FSharpList`1 projItems, String projPath, String sourceFile) in /_//src/Ionide.ProjInfo/VisualTree.fs:line 65
   at Ionide.ProjInfo.ProjectLoader.mapToProject(String path, IEnumerable`1 compilerArgs, IEnumerable`1 p2p, IEnumerable`1 compile, IEnumerable`1 nugetRefs, ProjectSdkInfo sdkInfo, IEnumerable`1 props, IEnumerable`1 customProps) in /_//src/Ionide.ProjInfo/Library.fs:line 576
   at Ionide.ProjInfo.ProjectLoader.getLoadedProjectInfo(String path, FSharpList`1 customProperties, LoadedProject project) in /_//src/Ionide.ProjInfo/Library.fs:line 645
   at Program.ProjectInfo.tryOfProject(FSharpList`1 additionalMSBuildProps, String file) in D:\a\Adaptify\Adaptify\src\Adaptify.Compiler\Program.fs:line 66
   at Program.projectInfos@293.Invoke(String projFile) in D:\a\Adaptify\Adaptify\src\Adaptify.Compiler\Program.fs:line 294
   at Microsoft.FSharp.Collections.ArrayModule.Choose[T,TResult](FSharpFunc`2 chooser, T[] array) in D:\a\_work\1\s\src\FSharp.Core\array.fs:line 631
   at Program.main(String[] argv) in D:\a\Adaptify\Adaptify\src\Adaptify.Compiler\Program.fs:line 292