- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想使用 JetBrains Rider 在 IIS Express 服务器上运行两个项目。
我试过使用复合配置,但找不到在同一台服务器上运行两个项目的方法?这在 Rider 中甚至可能吗?在 Visual Studio 中它可以工作,Visual Studio 是如何做到这一点的?
是否可以对我的本地 .idea applicationhost.config 进行任何更改来修复它?
谢谢!
最佳答案
在 JetBrains Rider 中同时运行多个 ASP.NET Core IIS Express 项目绝对是可能的。有一个已知问题,它需要一些额外的/手动设置:RIDER-32933 .评论中解释了一种解决方法,我将在此处简要复制。
IIS Express 原生支持使用同一个配置文件运行多个站点,Rider 在一定程度上利用了这种能力。唯一的问题是它会在启动每个应用程序时覆盖 IIS 配置,这会导致 IIS Express 杀死任何先前启动的应用程序实例。
根据您的问题,我得出的结论是您已经为您的应用程序创建了适当的运行配置,因此我不会在这里解释(但如果您需要帮助,请参阅相应文档的 here's a link)。
因此,首先,您需要让 Rider 为您创建一个合适的 applicationhost.config
。为此,至少一次 运行您希望同时运行的每个配置。例如。如果您有两个应用程序“WebApplication1:IIS Express”和“WebApplication13:IIS Express”,则需要分别启动一次。
完成后,Rider 将在解决方案文件夹的 .idea/config/applicationhost.config
中生成适当的配置文件。重要部分是:
<sites>
[…]
<site name="WebApplication" id="1">
[…]
<bindings>
<binding protocol="http" bindingInformation="*:49901:localhost" />
<binding protocol="https" bindingInformation="*:44375:localhost" />
</bindings>
</site>
<site name="WebApplication13" id="2">
[…]
<bindings>
<binding protocol="http" bindingInformation="*:26835:localhost" />
<binding protocol="https" bindingInformation="*:44339:localhost" />
</bindings>
</site>
</sites>
因此,在此配置中拥有两个 站点后,您需要禁止 Rider 触摸该配置。为此,请打开两个 配置的运行配置设置并取消选中Generate applicationhost.config 复选框:
之后,您可以手动启动两个配置(通过选择每个配置并按运行 按钮),或使用复合配置。调试也可以。
关于asp.net - 在 JetBrains Rider 中的 IIS Express 服务器上运行多个项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60900718/
如何附加库源,例如 MySql.Data.dll (源代码文件:mysql-connector-net-6.9.9-src.zip),到IDE? 当我 Ctrl + 单击库类时,它会自动反编译 dll
我们有一个样式规则,要求“使用”语句在类的 namespace 声明“内部”。我找不到从代码编辑器中设置自动引用的位置,以便添加的任何“使用”语句都将位于命名空间内而不是页面顶部。在设置中有代码样式
我刚刚创建了一个函数,但在架构中找不到它。为了确保我正在阅读最新的模式,我什至重新启动了 DataGrip。 DataGrip 中的函数在哪里? 最佳答案 在 例程数据库树的一部分。 关于jetbra
当多个选择光标处于事件状态时,有没有办法访问光标的索引? 例子 : 假设我有以下文本,有 5 个光标 lo|rem ip|sum do|lor si|t am|et 通过访问游标的索引,我可以轻松地将
我可以使用 MPS 为 IntelliJ 创建“常规”语言插件吗? 看起来 MPS 的核心功能是从 DSL 到 Java 的转录。但是,我只想定义 DSL 语法和编辑器,以通过 JetBrain 插件
我在工作中使用了 JetBrains 的 DataGrip。没关系,但我不知道如何在表之间创建关系,如下图所示: 最佳答案 这是一个两步程序。在第一步中,您必须修改表以添加外键约束定义。第二步,可以显
我在 Windows 10 上安装了 JetBrains Toolbox 应用。但是当我启动它时,它只显示一个空白边框,如下所示: 我尝试重新安装它,但仍然无法正常工作。有人知道如何解决这个问题吗?
不久前,我在 .edu. 域中使用我的电子邮件注册了所有 JetBrains 产品的学生许可证。许可证很快就会到期,所以我的问题是,我可以使用同一电子邮件再次注册下一个许可证吗?或者我有什么办法可以进
注: 我相信有更好的方法来解决这个问题。我只是想我会把它放在那里来拯救某人一些挫败感。 我不是专家,只是想提供帮助。 问题: 在基于 Ubuntu 的 Linux 发行版上使用 JetBrains 工
在 Rider 中,C# #regions 将在“结构” Pane 中显示为自动折叠。如果您在结构 Pane 中打开该区域,然后在打开的文件中的任何位置进行任何编辑,它们会再次自动折叠。 有什么办法可
昨天,我的 Android Studio 无缘无故开始显示以下消息: Gradle sync failed: org/jetbrains/kotlin/kapt/idea/KaptGradleMode
Error I am getting in flutter project, when run for android ( real device (android version 10) an
有人知道以下问题的解决方法吗? 除了:https://code.google.com/p/android/issues/detail?id=164202之外,我找不到任何有用的东西。 Android
我正在尝试调试远程 NodeJs 应用程序 (Volumio)。 我可以设置断点并单步执行代码,但是当我尝试检查任何变量的值时,我得到: org.jetbrains.v8.protocol.V8Pro
我从头开始创建了一个Kotlin原生应用程序,我得到了上面的错误。我怎么才能解决这个问题呢?这是一款简单的“Hello World”应用程序。我有其他计算机,但该错误没有出现在那里。我认为这与科南没有
目录 前言 jetbrains datagrip介绍: 安装教程 更换语言 接下来给大家介绍一下datagrip的基本使用步骤【连接数据库】
我浏览了所有应用程序和两个Google页面,但没有找到它。如何启用输出窗口? 还有更多字母。并有更多字母满足问题要求。 最佳答案 如果您指的是构建输出:从最新的EAP开始,您可以通过以下方式启用此功能
我在工作时使用JetBrains Toolbox来管理我的不同项目,但是它已经停止工作了几天。 当我单击该图标时,没有打开任何窗口。请注意,这与this question中的问题不同,我什么都没有发生
我想知道为什么DataGrip在编辑表值时不遵循本地数字格式分隔符。 在德国,我们的小数点分隔符是逗号,而不是点。因此,我无法使用键盘来编辑数字。 有没有人知道如何更改数字格式? 最佳答案 对于正在寻
如何选择多个文本实例?例如通过突出显示一个“li”标签来选择所有“li”标签,然后按快捷键选择下一个实例等等。谢谢 最佳答案 嗯,你不能。我认为您正在谈论 Sublime Text 2 中存在的多个光
我是一名优秀的程序员,十分优秀!