I ran into a rather strange problem with VS2010 and Script #, which I can recreate most of the time.
In my simple scenario, I have 2 projects in my solution; Asp.Net MVC2 standard web application and Script # jQuery class library. I created a static class (attributed [Imported]) with a static method on it, assuming that I can map this class in code to an external Javascript library, as described in the documentation.
However, it seems that whenever I decorate such a class with [IgnoreNamespace] to achieve this, the project stops compiling successfully, but does not give me any information on why it does not work (there is no example error in the error window). It is not easy to get rid of the fact that Visual Studio seems to go into a constant state of build failure; deleting classes and project files does not solve it, nor does it restart the visual studio. The only way I can get VS to successfully create a project is to completely delete the project, create a new one, and then add the files back, which is at least annoying.
With customization of the output of the detailed assembly, I get the following:
The "AfterCompile" target in the file "C: \ Program Files (x86) \ ScriptSharp \ v1.0 \ ScriptSharp.targets" from the project "e: \ project \ local \ ScriptSharpDemo \ Scripts \ Scripts.csproj" (target "Compile" depends from this: ScriptCompilerTask task The ScriptCompilerTask task is FAILED and the AfterCompile task in the Scripts.csproj project is FAILED.
.. which doesn’t tell me much.
There were several times when I managed to create this type of class and then successfully build, but basically I can reproduce this problem quite reliably.
At this point, I tend to think that the error is related to Script #, but I just wanted to confirm this and find a possible job, if any.