You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I updated to 0.18.6 which fixed all my other problems, my VSTS build started failing. Im using the standard function app deployment template which does a build and publish.
I noticed that it passed running the 'after build' compile, but failed the 'after publish' compile with the error: FunctionMonkey.ConfigurationException: CS1705:Assembly 'FunctionApp3' with identity 'FunctionApp3, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' SourceFile([3106..3147))
I get the same error running the dontnet command from the command line.
After some digging I saw that in FunctionMonkey.Compiler.targets, you are differentiating the FunctionCompilerParams for dotnetcore and adding --netcore21. That is not being done for FunctionPublishParams.
Adding that flag to the command line seems to fix the error, but I don't have a way to do that from my VSTS build.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this - just working on a fix now. Your suggestion is spot on - I need that param on the publish step too. Just working on a fix now.
I was able to replicate this and resolve it - 0.18.7 of FunctionMonkey.Compiler is indexing in NuGet at the moment and should resolve it. Let me know if you have any other issues and thanks again!
After I updated to 0.18.6 which fixed all my other problems, my VSTS build started failing. Im using the standard function app deployment template which does a build and publish.
I noticed that it passed running the 'after build' compile, but failed the 'after publish' compile with the error:
FunctionMonkey.ConfigurationException: CS1705:Assembly 'FunctionApp3' with identity 'FunctionApp3, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' SourceFile([3106..3147))
I get the same error running the dontnet command from the command line.
After some digging I saw that in
FunctionMonkey.Compiler.targets
, you are differentiating theFunctionCompilerParams
for dotnetcore and adding --netcore21. That is not being done forFunctionPublishParams
.Adding that flag to the command line seems to fix the error, but I don't have a way to do that from my VSTS build.
The text was updated successfully, but these errors were encountered: