cmdev Posted October 16, 2003 Posted October 16, 2003 Hello All, I am trying to compile my c# code to a directory that has spaces in it. The compiler doesn't like it when I specify a directory with spaces, I have tried everything. Any thoughts? I have tired the following with no luck csc.exe /out:Hello World/hello.world.dll /target:libarary *.cs csc.exe /out:"Hello World/hello.world.dll" /target:library *.cs csc.exe /out:'Hello World'/hello.world.dll' /target:library *.cs I get an error similar to: error CS1619: Cannot create temporary file 'd:\Build\test\Hello World\-- The directory name is invalid. Thanks for any help CMDev Quote
*Experts* Volte Posted October 16, 2003 *Experts* Posted October 16, 2003 Does the directory 'Hello World' exist in that folder? Quote
*Gurus* divil Posted October 16, 2003 *Gurus* Posted October 16, 2003 When specifying a path that contains spaces, the entire path needs to be enclosed in double quotes. csc.exe /out:"Hello World/hello.world.dll" /target:libarary *.cs Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
cmdev Posted October 16, 2003 Author Posted October 16, 2003 THanks all, I was just about to reply with the same solution. I just didn't try all the combination thanks again Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.