vbcodeprovider

/win32icon compiler parameters does not accept spaces in path?

Hi, I am trying to build a .NET executable at run-time using VBCodeProvider but when I try setting the icon to embed in CompilerParameters.CompilerOptions I see that it works with path without spaces, like C:\Temp\App.ico but if I have some spaces inside it does not work. It gives me the error: Error creating Win32 resources: Error re...

VBCodeProvider Error - error BC2006: option 'r' requires':<file_list>'

I am trying to use the VBCodeProvider to dynamically compile an assembly. The problem I'm running in to is that I need to give the CompilerParameters class a list of referenced assemblies. The code being used is this: CompilerParameters parameters = new CompilerParameters(); parameters.ReferencedAssemblies.AddRange(AppDomain.CurrentDom...