https://github.com/azz/vscode-csproj
:closed_book: Visual Studio Code extension to keep your csproj files up to date.
https://github.com/azz/vscode-csproj
csproj vscode vscode-extension
Last synced: about 1 month ago
JSON representation
:closed_book: Visual Studio Code extension to keep your csproj files up to date.
- Host: GitHub
- URL: https://github.com/azz/vscode-csproj
- Owner: azz
- License: mit
- Created: 2016-10-23T06:06:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-27T09:40:20.000Z (almost 7 years ago)
- Last Synced: 2025-03-18T17:07:49.827Z (about 1 month ago)
- Topics: csproj, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=lucasazzola.vscode-csproj
- Size: 1010 KB
- Stars: 21
- Watchers: 3
- Forks: 12
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VS Code `.csproj` Extension
This extension will helps you keep your csproj files in sync when using VS Code.
This is useful if you work in a team that uses both VS Code and Visual Studio.## Demo
### Adding Files to a Project

### Removing Files from a Project
| **Single File Deletion** | **Multiple File Deletion**
|---------------------------|--------------------------------
|  | ## How it Works
When you switch to or save a file not in the nearest `.csproj` up the file system tree, you will prompted.

Choosing "Close" will add an item to the status bar and stop asking you while you have the file open.
| **File Not in csproj** | **File Contained in csproj**
|------------------------|------------------------------
|  | You can add a file to csproj via the command palette:

Or via the context menu in the file explorer:

## Extension Settings
This extension contributes the following settings:
| **Setting Key** | **Description**
|-------------------------|-----------------
| `csproj.enable` | Enable/disable this extension.
| `csproj.itemType` | Mapping from file extension to csproj XML element. Defaults to:
`{ "*": "Content", ".ts": "TypeScriptCompile" }`
| `csproj.silentDeletion` | Silently delete items from csproj when their corresponding files are removed. Default: `false`.
| `csproj.includeRegex` | Regular expression to match files you want to add to csproj.
| `csproj.excludeRegex` | Regular expression to exclude files you do not want to add to csproj.These regular expressions will prevent unwanted prompts. If a file matches `includeRegex` *and* `excludeRegex`, it will be excluded.
The regular expressions will prevent this extension from prompting for action, but it intentionally will not
prevent you from adding via the command palette or a context menu. _However_, if you click "Include in Project" on
a directory, `files.exclude`, your saved ignore list, `csproj.includeRegex` and `csproj.excludeRegex` will be honored.## Links
* [GitHub Repository](https://github.com/DerFlatulator/vscode-csproj)
* [Marketplace Entry](https://marketplace.visualstudio.com/items?itemName=lucasazzola.vscode-csproj)## Release Notes
### Most Recent Release (0.7.0)
Features:
* Set `.cs` files to `Compile` by default ([#10](https://github.com/DerFlatulator/vscode-csproj/issues/10)).
### See GitHub for [full release history](https://github.com/DerFlatulator/vscode-csproj/releases)
## License
MIT