1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-28 15:58:31 +00:00

Merge pull request #3213 from sharkdp/csproj_xml_mapping

Map various .NET file extensions to XML syntax
This commit is contained in:
Keith Hall 2025-02-25 05:09:12 +02:00 committed by GitHub
commit 343326eacf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 51 additions and 0 deletions

View File

@ -20,6 +20,7 @@
- Improvements to CSV/TSV highlighting, with autodetection of delimiter and support for TSV files, see #3186 (@keith-
- Improve (Sys)log error highlighting, see #3205 (@keith-hall)
- Map `ndjson` extension to JSON syntax, see #3209 (@keith-hall)
- Map files with `csproj`, `vbproj`, `props` and `targets` extensions to XML syntax, see #3213 (@keith-hall)
## Themes

View File

@ -0,0 +1,2 @@
[mappings]
"XML" = ["*.csproj", "*.vbproj", "*.props", "*.targets"]

View File

@ -0,0 +1,5 @@
<Project>
 <PropertyGroup>
 <OutDir>C:\output\$(MSBuildProjectName)</OutDir>
 </PropertyGroup>
</Project>

View File

@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
 <PropertyGroup>
 <OutputType>Exe</OutputType>
 <TargetFramework>net9.0</TargetFramework>
 <RootNamespace>SomeNamespace</RootNamespace>
 <ImplicitUsings>enable</ImplicitUsings>
 <Nullable>enable</Nullable>
 </PropertyGroup>
</Project>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 <Target Name="TestTarget" AfterTargets="Build">
 <Message Importance="High" Text="-------------MHM----------------" />
 </Target>
</Project>

View File

@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<OutDir>C:\output\$(MSBuildProjectName)</OutDir>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>SomeNamespace</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="TestTarget" AfterTargets="Build">
<Message Importance="High" Text="-------------MHM----------------" />
</Target>
</Project>