URI not correctly generated


The "pixelShader.UriSource" statement in the generated constructor isn't generating the correct URI for the pixel shader.
Given a project folder structure like:
The generated URI looks like:
pixelShader.UriSource = new Uri("/Opto.Imaging;component/Imaging/Effects/OptoImagingEffect.ps", UriKind.Relative);
The "Imaging" in the middle of that URI shouldn't be there.
If I add a Custom Tool Namespace of "Opto.Imaging", the generated code looks like:
pixelShader.UriSource = new Uri("/Opto.Imaging;component/Imaging/OptoImagingEffect.ps", UriKind.Relative);
The Imaging in the in middle of the URI should be "Effects".


Thecentury wrote Apr 15, 2010 at 5:25 AM

I have a DynamicDataDisplay.Maps.dll with default namespace Microsoft.Research.DynamicDataDisplay.Maps. If we have shader in the root of the project, then it is possible to use the following URI: new Uri("pack://application:,,,/DynamicDataDisplay.Maps;component/ConvolutionEffect.ps") instead of the uri that is generated by your addin - new Uri("/DynamicDataDisplay.Maps;component/Research/DynamicDataDisplay/Maps/ConvolutionEffect.ps", UriKind.Relative).

NickDarnell wrote Apr 15, 2010 at 1:31 PM

Thanks for reporting the issue guys. I have a fix I should be able to post a new version later tonight.

Thecentury wrote Apr 15, 2010 at 1:59 PM

Thank you, Nick, for your great work!

sbussinger wrote Apr 17, 2010 at 5:13 PM

I wanted to follow up and let you know that your fix worked great! Thank you very much Nick!