ASP .Net Core Problem with Unity RRS feed

  • Question

  • User-1550234235 posted


    step1: Create new ASP .NET CORE by "dotnet new MVC";

    step2: Create .exe by "dotnet publish -r win-x64 -c Release /p:PublishSingle=true /p:PublishTrimmed=true";

    step3: The Web Page Style is missing when i log into "https://localhost:5001"(Starting the local server with the .exe);

    However ,when i log the page by  order "dotnet watch run" is completely no problem.

    how can i deal with the problem to fix missing page style ?

    2: I wanna to use the .dll (made by the ASP .Net Core) in Unity ,how can i do ?

    i used to put the .dll (order : "dotnet build ",location: bin/Debug/netcoreapp3.1/... .dll) into the Unity(Asset/Plugins/)

    but it throw exception as :

    "Unable to resolve reference 'Microsoft.AspNetCore.Mvc.Core'. Is the assembly missing or incompatible with the current platform?
    Reference validation can be disabled in the Plugin Inspector.

    if somebody can help me ,thanks much

    Wednesday, June 24, 2020 3:27 AM

All replies

  • User-474980206 posted

    1:  use the browser debug tools to see which files didi not load. maybe you want to use a CDN?


    check their docs:


    it's not supported. currently .net core requires a host runtime. so you could probably write a shim to load a core.dll, but you would still be restricted to .net standard api 2.0, which would not support an asp.net core application. 

    your best bet is to write a plugin in .net standard, that does a create process to run asp.net core application.

    Wednesday, June 24, 2020 6:08 PM