Nuget包含css\js等资源文件
程序员文章站
2022-07-11 09:00:57
文件树结构 Nuget.Server 网站代码 参考文档:https://poychang.github.io/output-static-content-file-to-project-in-dotnet-core-nuget-pack/ ......
<project sdk="microsoft.net.sdk">
<propertygroup>
<targetframework>netstandard2.0</targetframework>
<generatepackageonbuild>true</generatepackageonbuild>
<copylocallockfileassemblies>copypackagesue</copylocallockfileassemblies>
<version>1.3.5</version>
<description>
jieyun.acl框架,包含adminlte\adminlte\bootstrap\font-awesome\ionicons\jquery\jquery-confirm\jquery-cookie\jquery-sticky\jquery-validation\jquery-validation-unobtrusive\signalr\template\vue
</description>
<packagerequirelicenseacceptance>false</packagerequirelicenseacceptance>
</propertygroup>
<itemgroup>
<none include="contentfiles\jieyun.acl\**">
<pack>true</pack>
<packagecopytooutput>true</packagecopytooutput>
<packagepath>contentfiles\any\any\wwwroot\jieyun.acl\</packagepath>
</none>
</itemgroup>
</project>
文件树结构
├─.vs │ └─jieyun.acl │ ├─config │ ├─designtimebuild │ └─v16 │ └─server │ └─sqlite3 ├─bin │ ├─debug │ │ └─netstandard2.0 │ └─release │ ├─netstandard2.0 │ │ └─publish │ └─netstandard2.1 ├─contentfiles │ └─jieyun.acl │ ├─adminlte │ │ ├─css │ │ │ ├─alt │ │ │ └─skins │ │ ├─img │ │ └─js │ ├─bootstrap │ │ ├─css │ │ ├─fonts │ │ └─js │ ├─font-awesome │ │ ├─css │ │ └─fonts │ ├─ionicons │ │ ├─css │ │ └─fonts │ ├─jquery │ ├─jquery-confirm │ ├─jquery-cookie │ ├─jquery-sticky │ ├─jquery-validation │ ├─jquery-validation-unobtrusive │ ├─signalr │ ├─template │ └─vue ├─extensions ├─obj │ ├─debug │ │ ├─netstandard2.0 │ │ └─netstandard2.1 │ └─release │ ├─netstandard2.0 │ └─netstandard2.1 ├─properties │ └─publishprofiles └─resources
参考文档:
上一篇: 使用PYTHON接收多播数据的代码
下一篇: PHPShop存在多个安全漏洞
推荐阅读
-
Tomcat无法加载css和js等静态资源文件的解决思路
-
用Nodejs搭建服务器访问html、css、JS等静态资源文件
-
My97DatePicker事件无效,触发事件calendar.js,datepicker.css等文件无法加载
-
Android WebView加载本地资源文件(html、css、js)
-
SpringMVC js/css等静态资源引入不起作用问题
-
用JavaScript获取网页中的js、css、Flash等文件
-
Nuget包含css\js等资源文件
-
Eclipse中maven环境使用jetty启动后不能保存更改后的css,js等静态文件的解决方法
-
Android Webview 加载外部html时选择加载本地的js,css等资源文件_html/css_WEB-ITnose
-
如何强制jpg,js,css等连接资源,如果不存在就直接404而不重写