Giter Site home page Giter Site logo

Comments (4)

bicijinlian avatar bicijinlian commented on June 18, 2024

补充一点:把项目wwwroot目录直接复制到调试目录,可以正常运行。不太懂前端,不知道是什么原因。

from agileconfig.

bicijinlian avatar bicijinlian commented on June 18, 2024

原因找到了:ReactUIMiddleware中间件中,获取目录直接使用的是 AppDomain.CurrentDomain.BaseDirectory,而不是IWebHostEnvironment中的WebRootPath。而后者是能在VS里直接运行或调试时自动指向项目的wwwroot,而发布后自动指向发布根目录的wwwroot的。如果优先使用AppDomain.CurrentDomain.BaseDirectory,应该在获取之后判断一下是否存在,不存在再去WebRootPath目录找。源码已经更新过,可以运行。
如果接收推送,我可以发个请求。
image
image
image

from agileconfig.

bicijinlian avatar bicijinlian commented on June 18, 2024

已经提交请求,如果有问题请通知我处理。

from agileconfig.

bicijinlian avatar bicijinlian commented on June 18, 2024

PR已自行关闭,由原作者酌情处理!

from agileconfig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.