-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StackExchange.Precompiler.exe throws reference errors #33
Comments
I got it to work by adding these DLLs manually to the tools folder:
I found which versions by looking into |
Doesn't work at AppVeyor though https://ci.appveyor.com/project/itssimple/mn-l10n/build/1.0.65#L1455 |
Fix for AppVeyor I ran this in the Install Script-section:
And then I modified the config-file to support version 1.0.31 of the And in Before build-script I run: |
I have the same issue (running 4.1.1 version). I suspect the main problem is that I have more references to the same assemblies and they aren't resolved correctly -- I'm using .NET Framework, and some projects reference the .NET Framework "System.Runtime" (which is assembly version 4.0.20.0 in .NET 4.7 on path The precompiler isn't then able to resolve this correctly. It crashes on an exception like:
I solved the issue the same way as @itssimple, I added those lines to my Cake build script (right after NuGet package restore):
|
That sounds familiar. I've had this happen in another project, which doesn't use SE Precompilation. Did you try setting Can you try building with |
I made some progress since, I've updated to .NET 4.7 (from .NET 4.6.1) and to VS 2017 (and MSBuild 15). Then it seems that most of these assemblies resolve correctly just based on the binding redirects to the .NET 4.7 assembly, not the assembly from NuGet. I've also done some NuGet package reinstallations... So most of this copying of assemblies was no longer needed. However, there was an exception to this. There was a problem with assemblies that are found in: There are just 3 assemblies there:
When compiling with the I have tried several things and the only reliable way to get around this issue without causing additional issues during build or runtime, was to copy the three assemblies from: |
I'm not normally one for posting huge blocks of code.
But the
4.0.0
StackExchange.Precompiler.exe throws this when I try to run it.The text was updated successfully, but these errors were encountered: