久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何防止 Visual Studio 2017 構建 JavaScript?

How to prevent visual studio 2017 from build javascript?(如何防止 Visual Studio 2017 構建 JavaScript?)
本文介紹了如何防止 Visual Studio 2017 構建 JavaScript?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我今天升級到 VS2017,我看到每次我在我的 web 應用程序項目中更改一些東西 - 構建再次構建我所有的 javascript(我使用 webpack 作為客戶端).這很酷,但需要很多時間,所以我很樂意將它配置為停止構建 javascript(我會在它發生變化時自己構建它).

I upgraded today to VS2017, and I saw that every time I change something in my my web app project - the build build all my javascript again (I'm using webpack for client). It is cool, but it take a lot of time, so I'll be happy to configure it to stop building the javascript (and I'll build it myself just when it changed).

推薦答案

簡單回答

在您的 csproj 文件中,將以下行添加到現有的 PropertyGroup 塊:

Simple Answer

In your csproj file, add the following line to the existing PropertyGroup block:

<PropertyGroup>
     <TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
</PropertyGroup>

如果將 .ts.tsx 文件添加到您的項目會導致您的項目文件被修改,您可能需要應用以下修復.請參閱 錯誤報告 了解更多詳情.

If adding .ts or .tsx files to your project causes your project file to be modified, you may need to apply the following fix. See the bug report for more details.

 <ItemGroup>
      <None Remove="**/*.ts;**/*.tsx" />
      <Content Remove="**/*.ts;**/*.tsx" />
      <TypeScriptCompile Include="**/*.ts;**/*.tsx" />
 </ItemGroup>

tsconfig.json 文件添加到您的項目根目錄并確保設置了以下設置:

Add a tsconfig.json file to your project root and make sure the following setting is set:

"compileOnSave": false,

最后,重啟 Visual Studio

Finally, Restart Visual Studio

Nuget 在項目的 obj 目錄中創建一個名為 [ProjectName].csproj.nuget.g.targets 的生成目標文件.此目標文件正在導入 Microsoft.NET.Sdk.Web.ProjectSystem.targets,而后者又會導入 Microsoft.TypeScript.targets.

Nuget creates a generated targets file called [ProjectName].csproj.nuget.g.targets in the obj directory of your project. This targets file is importing Microsoft.NET.Sdk.Web.ProjectSystem.targets which in turn imports Microsoft.TypeScript.targets.

Microsoft.TypeScript.targets 文件中,以下行有一條注釋讓我們知道如果此屬性設置為 true,那么 TypeScript 編譯任務將不執行任何操作:

In the Microsoft.TypeScript.targets file, the following line has a comment that lets us know that if this property is set to true, then the TypeScript compilation task will do nothing:

<!-- Makes the TypeScript compilation task a no-op -->
<TypeScriptCompileBlocked Condition="'$(TypeScriptCompileBlocked)' == ''">false</TypeScriptCompileBlocked>

這篇關于如何防止 Visual Studio 2017 構建 JavaScript?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How can I get my jasmine tests fixtures to load before the javascript considers the document to be quot;readyquot;?(在 javascript 認為文檔“準備好之前,如何讓我的 jasmine 測試裝置加載?) - IT屋-程序員軟件開發技術
What do jasmine runs and waitsFor actually do?(jasmine 運行和等待實際上是做什么的?)
How to provide mock files to change event of lt;input type=#39;file#39;gt; for unit testing(如何提供模擬文件來更改 lt;input type=filegt; 的事件用于單元測試)
How to unit test a chained method using Jasmine(如何使用 Jasmine 對鏈式方法進行單元測試)
How do I inject $rootScope into an AngularJS unit test?(如何將 $rootScope 注入 AngularJS 單元測試?)
Jasmine - How to spy on a function call within a function?(Jasmine - 如何監視函數中的函數調用?)
主站蜘蛛池模板: 欧美精品在线一区二区三区 | 国产精品久久久久久久白浊 | 成人h片在线观看 | 欧美日韩专区 | 国产一区二区影院 | 欧美videosex性极品hd | 国产精品视频网站 | 欧美成人第一页 | 精品一区二区三区日本 | 激情一区二区三区 | 成人精品鲁一区一区二区 | 国产一区二区三区色淫影院 | 成人福利电影 | 成人免费小视频 | 香蕉大人久久国产成人av | 欧洲一区在线观看 | 免费观看黄色一级片 | 精品免费视频 | 亚洲成人播放器 | 日韩欧美福利视频 | 中文字幕亚洲欧美 | 久久久精品一区二区三区 | 夜夜夜夜夜夜曰天天天 | 亚洲精品在线免费观看视频 | 国产探花在线观看视频 | 亚洲欧美日韩精品久久亚洲区 | 欧美三区在线观看 | 91精品国产91久久久久久吃药 | jav成人av免费播放 | 国产精品一区二区福利视频 | 国产专区在线 | 草草视频在线播放 | 日韩欧美在线一区二区 | 欧美一区二区三区在线观看 | 99久久99| 天堂一区在线观看 | 日韩成人在线免费视频 | 亚洲精品不卡 | 精品成人在线视频 | 久久久久久国产 | 精国产品一区二区三区 |