Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've got the latest source code from yester (and did a pull today to see if anything changed over night). I've got it compiling now but it won't run and throws a YSOD when I "Ctrl + 5" in Visual Studio:
The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.
I've followed the instructions on the quick start guide (massively worried this is out of date): https://github.com/umbraco/Umbraco-CMS/blob/dev-v8/.github/V8GETTINGSTARTED.md
I'm running VS Community v15.9.7 and have installed both .NET Framework 4.7.2 and the developer pack but still no luck.
What on earth can I try next? When googling the error I get references to blogs from 2014 talking about enabling the Rosyln compilers with mentions that they are still in "beta" which can't be right. What am I doing wrong?
weird. tried to clear the solution before rebuilding? force-restoring nuget packages? empty the bin directory entirely?
I had something similar and found different projects within the soltion had different versions of that package installed, updated the older one to match and that solved that issue once I also updated the other 5 packages where this happened.
I was running my own branch and merging in from what was temp8 every now and then when this happened. Put it down to being pre-release at that time (or a mistake I made somewhere along the way)
So at first, it was you own NuGet server messing with you (as I read on Slack).
Have you tried to run .\build\build.ps1 now so it can try to reset all the dependencies? Also delete \src\Umbraco.Web.UI\web.config since you've probably got the wrong bits in there now installed by the Offroad nuget server's dependencies.
In general, always a good idea if it doesn't work to try the build script.
I've got a big long reply with all the things I've tried in draft for all the other folks who might get this odd error. I think its my machine and what I'm doing not Umbraco's fault but I'll document it here in a bit in case anyone has this query issue and raise an issue on github for a few quirks I've found so it should "just work" for others in future.
Urgh. So learnt some things along the way.
That got rid of the error and got me to another error about ClientDependancy Logger! But that taught me some new stuff:
Another option would be to add a dependency on the Microsoft.CodeDom.Providers.DotNetCompilerPlatform.BinFix package instead of the Microsoft.CodeDom.Providers.DotNetCompilerPlatform package. The .BinFix adds a target which copies the compilers in automatically before building.
Hi Benjamin, could you tell me, how can I add a dependency on the BinFix? I have same problem...
It is just a different NuGet package. You would add it using the NuGet Package Manager or the package manager console, however you normally add NuGet packages to your project.
Hmm, I was thinking, I have to do it some manually way, because I tried it and didn't work
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted