Skip to content

Commit d31bc43

Browse files
committed
Map various .NET file extensions to XML syntax
1 parent adfb951 commit d31bc43

File tree

8 files changed

+51
-0
lines changed

8 files changed

+51
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- Improvements to CSV/TSV highlighting, with autodetection of delimiter and support for TSV files, see #3186 (@keith-
2121
- Improve (Sys)log error highlighting, see #3205 (@keith-hall)
2222
- Map `ndjson` extension to JSON syntax, see #3209 (@keith-hall)
23+
- Map files with `csproj`, `vbproj`, `props` and `targets` extensions to XML syntax, see #3213 (@keith-hall)
2324

2425
## Themes
2526

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[mappings]
2+
"XML" = ["*.csproj", "*.vbproj", "*.props", "*.targets"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
 <PropertyGroup>
3+
 <OutDir>C:\output\$(MSBuildProjectName)</OutDir>
4+
 </PropertyGroup>
5+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
 <PropertyGroup>
4+
 <OutputType>Exe</OutputType>
5+
 <TargetFramework>net9.0</TargetFramework>
6+
 <RootNamespace>SomeNamespace</RootNamespace>
7+
 <ImplicitUsings>enable</ImplicitUsings>
8+
 <Nullable>enable</Nullable>
9+
 </PropertyGroup>
10+
11+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
 <Target Name="TestTarget" AfterTargets="Build">
5+
 <Message Importance="High" Text="-------------MHM----------------" />
6+
 </Target>
7+
8+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<PropertyGroup>
3+
<OutDir>C:\output\$(MSBuildProjectName)</OutDir>
4+
</PropertyGroup>
5+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net9.0</TargetFramework>
6+
<RootNamespace>SomeNamespace</RootNamespace>
7+
<ImplicitUsings>enable</ImplicitUsings>
8+
<Nullable>enable</Nullable>
9+
</PropertyGroup>
10+
11+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<Target Name="TestTarget" AfterTargets="Build">
5+
<Message Importance="High" Text="-------------MHM----------------" />
6+
</Target>
7+
8+
</Project>

0 commit comments

Comments
 (0)