Solution does not build

Oct 6, 2008 at 8:31 AM
Using VS 2008 SP 1 the solution does not build. Both the shader and transition effects library show the same error message (this is from the sharer library)

Error 1 The "ShaderBuildTask.PixelShaderCompile" task could not be loaded from the assembly ShaderBuildTask, Version=1.0.3072.18169, Culture=neutral, PublicKeyToken=44e467d1687af125. Could not load file or assembly 'ShaderBuildTask, Version=1.0.3072.18169, Culture=neutral, PublicKeyToken=44e467d1687af125' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available. C:\Users\userx\Desktop\effectslib\ShaderEffectLibrary\ShaderEffectLibrary\ShaderEffectLibrary.csproj 117 5 ShaderEffectLibrary
Coordinator
Oct 8, 2008 at 4:18 AM
Hi rmaclean.. 
You need the shader effects build task from http://www.codeplex.com/wpf    [part of the WPF futures].
Can you try that ??

[This is documented in the requirements btw.. sorry if not easily discoverable]..

thanks!
Oct 10, 2008 at 9:21 AM
Windows Presentation Foundation Pixel Shader Effects Library does not build
Oct 10, 2008 at 3:36 PM
Even after installing the shader effects build task, the solution will still not build. The ShaderEffect class cannot be found, so all of the shader effects in ShaderEffectLibrary won't compile. Where is the ShaderEffect class supposed to be located? jaimer, where is the documentation you are referring to?
Oct 10, 2008 at 3:42 PM
Nevermind...I didn't realize SP1 was required. Unfortunately SP1 has several major bugs in it which prevent me from installing it, so I won't be able to make use of this project.
Nov 13, 2008 at 12:17 PM
I'm using VS2008 and .Net Framework 3.5 SP1. I've installed shader effects build task
from http://www.codeplex.com/wpf though, but the solution doesn't build yet.

What's wrong with it ?
How can I solve it ?

Coordinator
Nov 13, 2008 at 5:16 PM
It sounds you've done everything right so far.  What version of Visual Studio are you using?  Did you recieve a build error?
Nov 13, 2008 at 6:20 PM
What version of Visual Studio are you using?
As I said, I'm using Visual Studio 2008. Also I've installed .Net Framework 3.5 SP1

Did you receive a build error?
Yes, I did .
When I wanna build ShaderDemoApp project , I've received these errors :

Error    1    The type reference cannot find a public type named 'BandedSwirlEffect'. Line 22 Position 65.    H:\Learning\Refrence\Microsoft .Net\C#\WPF\WPF & Shader\effectslib\DemoApp\TemplatesToConfigureEffects.xaml    22    65    ShaderDemoApp

Error    2    The "ShaderBuildTask.PixelShaderCompile" task could not be loaded from the assembly ShaderBuildTask, Version=1.0.3072.18169, Culture=neutral, PublicKeyToken=44e467d1687af125. Could not load file or assembly 'ShaderBuildTask, Version=1.0.3072.18169, Culture=neutral, PublicKeyToken=44e467d1687af125' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available.    H:\Learning\Refrence\Microsoft .Net\C#\WPF\WPF & Shader\effectslib\ShaderEffectLibrary\ShaderEffectLibrary\ShaderEffectLibrary.csproj    113    5    ShaderEffectLibrary

Error    3    The "ShaderBuildTask.PixelShaderCompile" task could not be loaded from the assembly ShaderBuildTask, Version=1.0.3072.18169, Culture=neutral, PublicKeyToken=44e467d1687af125. Could not load file or assembly 'ShaderBuildTask, Version=1.0.3072.18169, Culture=neutral, PublicKeyToken=44e467d1687af125' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available.    H:\Learning\Refrence\Microsoft .Net\C#\WPF\WPF & Shader\effectslib\ShaderEffectLibrary\TransitionEffects\TransitionEffects.csproj    135    5    TransitionEffects


Nov 24, 2008 at 6:32 PM
I've had this exact same problem. Has there been any progress on finding a solution?
Nov 24, 2008 at 8:57 PM
Ironically, I fixed this this evening after posting this comment. I thought I'd post here incase anyone else was still struggling.

My problem was that I had SP1 beta of Visual Studio 2008 installed. I downloaded the released SP1 and it told me I had to download something to remove SP1 beta. I did that, then installed SP1. After that I repaired the ShaderBuildTaskSetup.msi and rebuilt the ShaderDemoApp project. It built fine!

Best of luck anyone else who's trying.
Nov 25, 2008 at 7:46 AM
So, can you post the link of VS2008 SP1 that you downloaded it !

Nov 25, 2008 at 7:49 AM
Sure (if you do a Google search for "Visual Studio 2008 SP1" it's top of the list ;-) )

http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en


Nov 25, 2008 at 7:57 AM
Thanks a lot mattjmatthias

Almost two days ago I downloaded VS2008 sp1 from here ( http://www.microsoft.com/downloads/details.aspx?familyid=27673c47-b3b5-4c67-bd99-84e525b5ce61&displaylang=en )
Is it that ?
Or I must download it again ( from your link )
Nov 25, 2008 at 7:58 AM
Yeah I think they are essentially the same thing. My link points to a downloadable installer which then downloads the required parts; I think your link downloads everything and then installs whatever it needs.
Nov 25, 2008 at 8:07 AM
Edited Nov 25, 2008 at 8:22 AM
I just installed it , unfortunately it doesn't work and I still receive the errors .
I tried anyway
Dec 4, 2008 at 4:17 PM
Has anyone come up with a working solution to this problem?  I have VS2008 SP1 and never installed the SP1 beta and have the same 3 build errors. :-(
Dec 22, 2008 at 12:25 AM
You must install the Shader Effects BuildTask and Templates.zip http://www.codeplex.com/wpf/Release/ProjectReleases.aspx?ReleaseId=14962
Sep 7, 2012 at 2:10 PM

I have just moved a build that uses Shader Effects Build Task to a TFS 2012 build server. I am getting the problem above.

The "ShaderBuildTask.PixelShaderCompile" task could not be loaded from the assembly ShaderBuildTask, Version=1.0.3072.18169, Culture=neutral, PublicKeyToken=44e467d1687af125. Could not load file or assembly 'ShaderBuildTask, Version=1.0.3072.18169, Culture=neutral, PublicKeyToken=44e467d1687af125' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

I have installed the Shader Effects BuildTask, The dll is in the Gac. I have tried both of the following UsingTask Statements

<UsingTask TaskName="ShaderBuildTask.PixelShaderCompile" AssemblyName="ShaderBuildTask, Version=1.0.3072.18169, Culture=neutral, PublicKeyToken=44e467d1687af125" />

<UsingTask TaskName="ShaderBuildTask.PixelShaderCompile" AssemblyFile="c:\windows\assembly\ShaderBuildTask.dll" />

Anyone know what I am missing or what I need to do to get this to work?

Dave

Nov 23, 2012 at 4:08 PM

I had a similar issue, because I'm using parts of this project in a Visual Studio 2012 DSL WPF editor.

What I did was created a VS2012 Windows Store C++ Static Library project, cleaned all the default template files, added the shader files (.fx), setup the HLSL compiler to properly compile them, and that project's build will compile all the shaders with the latest HLSL compiler.

My project isn't added to the Build Server, but I don't predict any major issues (besides all the problems that getting T4 transforms in a Build Server have!) when it gets added to our Build Server.

Cheers,

David