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

Project path appears to not work with spaces in path name #263

Open
ShaunAtSense opened this issue Feb 27, 2020 · 5 comments
Open

Project path appears to not work with spaces in path name #263

ShaunAtSense opened this issue Feb 27, 2020 · 5 comments

Comments

@ShaunAtSense
Copy link

1> An error occurred during processing:
1> Unable to read specified project file: C:\OneDrive\OneDrive
1> Could not find file 'C:\OneDrive\OneDrive'.

The project path contains spaces and a hyphen after "C:\OneDrive\OneDrive"
"C:\OneDrive\OneDrive - sens..."

@lextm
Copy link
Member

lextm commented Mar 5, 2020

You have to give more context about this error.

@ShaunAtSense
Copy link
Author

If the project path contains spaces (" ") then Obfuscar generates an error.
I am using a project path "C:\OneDrive\OneDrive - www.test.com"

@lextm
Copy link
Member

lextm commented Mar 5, 2020

@ShaunAtSense Obfuscar does not process your project file. What's the command line you use to run Obfuscar and what is the content of your configuration file (XML)?

@ShaunAtSense
Copy link
Author

Then I have this in the build event:

if $(ConfigurationName) == Release (
"$(Obfuscar)" -s $(ProjectDir)obfuscar.xml
)

@lextm
Copy link
Member

lextm commented Mar 6, 2020

Can you try "$(Obfuscar)" -s "$(ProjectDir)obfuscar.xml"?

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

No branches or pull requests

2 participants