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

Not working under linux with double-backslashes #14

Merged
merged 2 commits into from Oct 12, 2017

Conversation

Projects
None yet
2 participants
@bergi9
Copy link
Contributor

commented Oct 12, 2017

I'm using Docker to build these projects.

  Generating files for project "."...
EXEC : GENERIC error : Could not find a part of the path '/Project/.\bin'. [/Project/Project.csproj]
     at System.IO.UnixFileSystem.FileSystemEnumerable`1.OpenDirectory(String fullPath)
     at System.IO.UnixFileSystem.FileSystemEnumerable`1.Enumerate()
     at System.IO.UnixFileSystem.FileSystemEnumerable`1..ctor(String userPath, String searchPattern, SearchOption searchOption, SearchTarget searchTarget, Func`3 translateResult)
     at System.IO.UnixFileSystem.EnumeratePaths(String path, String searchPattern, SearchOption searchOption, SearchTarget searchTarget)
     at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
     at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
     at TypeGen.Cli.Business.ConfigProvider.GetDefaultAssemblyPath(String projectFolder)
     at TypeGen.Cli.Business.ConfigProvider.UpdateConfigAssemblyPaths(TgConfig config, String projectFolder, Boolean logVerbose)
     at TypeGen.Cli.Business.ConfigProvider.GetConfig(String configPath, String projectFolder, Boolean logVerbose)
     at TypeGen.Cli.Program.Generate(String projectFolder, String configPath, Boolean verbose)
     at TypeGen.Cli.Program.Main(String[] args)
/Project/Project.csproj(48,5): error MSB3073: The command "dotnet /root/.nuget/packages/typegen/1.5.9/tools/TypeGen.Cli.dll ." exited with code -1.
Causes not working under linux
I'm using Docker to build these projects.
```
  Generating files for project "."...
EXEC : GENERIC error : Could not find a part of the path '/Project/.\bin'. [/Project/Project.csproj]
     at System.IO.UnixFileSystem.FileSystemEnumerable`1.OpenDirectory(String fullPath)
     at System.IO.UnixFileSystem.FileSystemEnumerable`1.Enumerate()
     at System.IO.UnixFileSystem.FileSystemEnumerable`1..ctor(String userPath, String searchPattern, SearchOption searchOption, SearchTarget searchTarget, Func`3 translateResult)
     at System.IO.UnixFileSystem.EnumeratePaths(String path, String searchPattern, SearchOption searchOption, SearchTarget searchTarget)
     at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
     at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
     at TypeGen.Cli.Business.ConfigProvider.GetDefaultAssemblyPath(String projectFolder)
     at TypeGen.Cli.Business.ConfigProvider.UpdateConfigAssemblyPaths(TgConfig config, String projectFolder, Boolean logVerbose)
     at TypeGen.Cli.Business.ConfigProvider.GetConfig(String configPath, String projectFolder, Boolean logVerbose)
     at TypeGen.Cli.Program.Generate(String projectFolder, String configPath, Boolean verbose)
     at TypeGen.Cli.Program.Main(String[] args)
/cgame/CGame.WebServer/CGame.WebServer.csproj(48,5): error MSB3073: The command "dotnet /root/.nuget/packages/typegen/1.5.9/tools/TypeGen.Cli.dll ." exited with code -1.
```

@bergi9 bergi9 changed the title Causes not working under linux Not working under linux with double-backslashes Oct 12, 2017

@bergi9

This comment has been minimized.

Copy link
Contributor Author

commented Oct 12, 2017

Btw @jburzynski as of #10 there i was testing with windows, now this pull request was made after testing with docker.

@jburzynski
Copy link
Owner

left a comment

Can you change a slash to {Path.DirectorySeparatorChar} ?

Also, please change the branch to dev.

Thanks!

@bergi9 bergi9 changed the base branch from master to dev Oct 12, 2017

@jburzynski jburzynski merged commit c24925d into jburzynski:dev Oct 12, 2017

1 check passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details

@bergi9 bergi9 deleted the bergi9:patch-2 branch Oct 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.