Shawn Hargreaves:The public key token is used for system assemblies that are installed into the GAC (Global Assembly Cache). Such assemblies are referenced by a strong name, which includes the assembly name, version, and key.
For your own assemblies, you should normally just specify their filename, eg. "c:\myfolder\myassembly.dll".
Hmmm, maybe I'm missing something because its still not working.
This is what I get when passing the full path straight up to msBuildProject.AddNewItem("Reference", <path>);
[22:03:42] Assembly strong name "G:\Coding\Glow\bin\x86\Debug\Glow.exe\GlowPipeline.dll" is badly formed. It may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\).
[22:03:43] Cannot autodetect which importer to use for "g:\coding\glow\content\enemy\vvvvv.enemy". There are no importers which handle this file type. Specify the importer that handles this file type in your project.
So I figure this is probably because I need to double up on the backslashes. I reformat the string with String.Replace("\\", "\\\\") but it still doesn't work.
Assembly strong name "G:\\Coding\\Glow\\bin\\x86\\Debug\\Glow.exe\\GlowPipeline.dll" is badly formed. It may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\).
Do I need to pass something else/more than just the path?
Thanks for your time.