You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a NodeJs project (.njsproj) in VS2022 for a React-based SPA. Committing code in this project is difficult because of seemingly insignificant changes in the .njsproj file:
Some .js files are marked <Compile>, others are <Content>. JSX files are similarly split.
CSS files (.css) are usually marked <Content>. But it's unclear why, as they're usually compiled by webpack too.
Some random <Compile> and <Content> entries have <SubType>Code</SubType> but others don't.
Some entries are sorted, other newly created entries are are placed randomly.
My project was created in an earlier version of VS (VS2015 I think) and upgraded over time, but even a new project created in VS2022 has the third issue. This is what a new NodeJs project looks like (with a .jsx and .css file created):
Activity