Comments (6)
So that's expected behavior then. By default the linter will report misformatted code, and fail. To fix it you should run once with --fix and commit the results, or format your files with dotnet format manually.
from nx-dotnet.
Are you passing --fix to the command? I don't see it in your screenshots
from nx-dotnet.
thanks for the response @AgentEnder - good question
so basically when following the instructions out of the box on this page, the project.json that gets made just reads as follows (this is with 2.1.2 release btw):
and when you run the lint task you get that error that we are discussing in these threads - so in my screenshot in my comments yesterday I had patched the Object.assign() and just remove the line you had added in that commit -- However that's not a viable fix, so what I ended up doing so that every member on the team can work on the project was made my project.json that was made out of the box to look like this for now - besides this fix false below, I didn't do anything else compared to out of the box behaviour in that tutorial above --- without this patch below, I would still get that error just like 2.1.1
from nx-dotnet.
i see - ok so I think we can mark it closed then - we add the "fix" : true" to options in project.json after seeding any new project
from nx-dotnet.
I wouldn't recommend specifying fix true in project.json, as you wouldn't catch misformatted code on CI that way
from nx-dotnet.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from nx-dotnet.
Related Issues (20)
- [BUG] nx-dotnet / msbuild explodes links to dist/intermediates within project folder HOT 1
- [BUG] solutionFile specified in nx.json not used when creating new app HOT 1
- [BUG] Generating webapi does not seem to work in new nx workspace HOT 6
- [BUG] check-module-boundaries.js adds significant time to test workflows
- [BUG / REQUEST] When running npm install, dotnet restore is automatically fired - option to skip this HOT 1
- [Feature] ability to run "dotnet watch build" HOT 2
- [BUG] *.WapProj not found HOT 4
- [BUG] - warning for each dotnet project: Project '{name}' contains extension with invalid name (type) HOT 2
- [BUG] targetDefaults in nx.json doesn't work
- dotnet format is in dotnet sdk since dotnet 6 HOT 3
- [BUG] Renaming .csproj results in build errors in dependent projects due to cache
- Need ability to disable hot reload when using @nx-dotnet/core:serve and/or @nx-dotnet/core:test
- [BUG] check-module-boundaries.js sometimes fails: EPERM: operation not permitted, rename 'project-graph.json~ab440dc1' -> 'project-graph.json' HOT 1
- [BUG] run-many with configuration doesn't build dependencies with the same configuration HOT 2
- [BUG] Locked files during npm ci HOT 1
- How to enforce module boundaries with Nx 18+ crystal/inference HOT 1
- [Feature] update @nx/devkit dependency to support nx 19
- [BUG] NX Test executor does not hot reloads
- [BUG] unable to exclude foreign updates from test/build (package.json)
- ##[error]EXEC(0,0): Error : Cannot find module 'D:\a\1\s\node_modules\@nx-dotnet\core\src\tasks\check-module-boundaries.js'[BUG] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx-dotnet.