How to install the Microsoft.CodeDom.Providers.DotNetCompilerPlatform.3.6.0

Qiuguo Li 21 Reputation points
2021-06-01T01:05:18.507+00:00

Hi,
I have a Azure Ad auth sample app download from
https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-aspnet-webapp
It required the Microsoft.CodeDom.Providers.DotNetCompilerPlatform.3.6.0
but I cannot get it install/uninstall/update, none of it works,
When I do the install/uninstall/update , it failed with message said some nuget missing need restore,
and when I click "Restore" it said the Microsoft.CodeDom.Providers.DotNetCompilerPlatform.3.6.0 failed,
it is dead loop.
I tried to clear all nuget local cache, restart the pc. I still did the same.
any help please!
101160-image.png

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Answer accepted by question author
  1. Daniel Zhang-MSFT 9,661 Reputation points
    2021-06-02T02:11:54.08+00:00

    Hi QiuguoLi-6442,
    I download the Visual Studio 2019 solution and made a test by following the steps in the document you provided.
    And the first thing you need pay attention to is that you need to unzip the archive or clone the repository into a directory near the root of the drive to avoid errors caused by path length limitations on Windows.
    And then right-click the solution "AppModelv2-WebApp-OpenIDConnect-DotNet" ->select Restore NuGet packages.
    At first I encountered an error here, so I suggest you change the project location.
    The result is as follows:
    101479-62.png
    Then run Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r in View > Other Windows > Package Manager Console.
    The result:
    101480-621.png
    I run the in project in visiual studio 2017.
    Best Regards,
    Daniel Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Qiuguo Li 21 Reputation points
    2021-06-04T08:08:03.8+00:00

    Did a clean install with VS 2019 only and it works, could be because I have VS2017 & VS2019 installed together.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.