简体   繁体   中英

net core doesn't rebuild project when embedded file is changed

When an embedded file is changed the rebuild is skipped.

========== Build: 0 succeeded, 0 failed, 5 up-to-date, 1 skipped ==========

The only option I found was an manual rebuild of the project.

my build options in project.json

"buildOptions": {
    "emitEntryPoint": true,
    "preserveCompilationContext": true,
    "embed": ["**/*.sql"]
  },

解决方案是使用dotnet watch testdotnet watch run

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM