Comments
2 comments
-
There is not enough information in the error message to say what the problem is, but off the top of me head I would say it was something to do with Log4Net. Because SA has to share its' process space with other add-ins, I've found some of them using different versions of the third-party log4net dll, and if an incompatible version gets loaded, it will cause a problem in the Visual Studio build.
The only way I've found around that is to not use the MSBUILD task DLL and change the post-build action to an EXEC task instead. -
Brian Donahue wrote:There is not enough information in the error message to say what the problem is, but off the top of me head I would say it was something to do with Log4Net. Because SA has to share its' process space with other add-ins, I've found some of them using different versions of the third-party log4net dll, and if an incompatible version gets loaded, it will cause a problem in the Visual Studio build.
The only way I've found around that is to not use the MSBUILD task DLL and change the post-build action to an EXEC task instead.
Add comment
Please sign in to leave a comment.
Here is fragment of my .csproj file. I get following error when start building:
SmartAssembly build failed: The type initializer for 'SmartAssembly.ConsoleApp' threw an exception.
At the same time if I launch SmartAssembly application, create new project and build it, build succeeds. What could be wrong?