百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

aspnetcore-vueclimiddleware

> 前端框架
开源

用于在 ASP.NET MVC Core 上使用 Vue Cli 或 Quasar Cli 构建单页应用程序的辅助工具。

338 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

用于在 ASP.NET MVC Core 上使用 Vue Cli 或 Quasar Cli 构建单页应用程序的辅助工具。

VueCliMiddleware - Supporting Vue Cli and Quasar Cli

This is a stand-alone module to add Vue Cli and Quasar Cli support to AspNet Core.

See the examples here: https://github.com/EEParker/aspnetcore-vueclimiddleware/tree/master/samples

ASP.NET 3.X Endpoint Routing

First, be sure to switch Vue Cli or Quasar Cli to output distribution files to wwwroot directly (not dist).

  • Quasar CLI: regex: "Compiled successfully"
  • Vue CLI: regex: "Compiled successfully" or "running at" or "Starting development server" depending on version

the reason for Starting development server ,the npm-script running checkpoint: Although the dev server may eventually tell us the URL it's listening on, it doesn't do so until it's finished compiling, and even then only if there were no compiler warnings. So instead of waiting for that, consider it ready as soon as it starts listening for requests.see the codes

Configuration Options

When using the MapToVueCliProxy or UseVueCli you can customize the behavior based on your npm script runner or compiler.

Parameter Type Description Default
npmScript string The name of the script in your package.json file that launches the vue-cli, quasar cli or other web server.
spaOptions SpaOptions Set the folder of the app to be proxied.
port int Specify the vue cli server port number. This is also used by the force-kill option to discover processes utilizing the port. 8080
https bool Set proxy to use https false
runner enum { Npm, Yarn } Specify the runner, Npm and Yarn are valid options. Yarn support is experimental. Npm
regex string IMPORTANT Text to search in npm log that indicates web server is running. This MUST BE SET for vue-cli, quasar and quasar v2. (e.g. running at, READY, APP Url) running at
forceKill bool Attempt to kill the npm process when stopping debugging. false
wsl bool Set to true if you are using WSL on windows. For other operating systems it will be ignored. This changes the executed process name to wsl instead of cmd. false

See Migrating Asp.Net 2.2 to 3.0 Endpoint Routing

…

ASP.NET 2.2 Usage Example

…

CSPROJ Configuration

You may also need to add the following tasks to your csproj file. This are similar to what are found in the default ASPNETSPA templates.

bash
  
    
    ClientApp\
    $(DefaultItemExcludes);$(SpaRoot)node_modules\**
  
  
    
    
      
    
    
  

  
    
    
      
    
  

  
    
    

    
  

  
    
    
    

    
    
      
      '%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
        %(DistFiles.Identity)
        PreserveNewest
      
    
  

History

Due to the discussion here, it was decided to not be included in the Microsoft owned package.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#aspnetaspnetcoredotnetquasar-cli

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架