mirror of
https://github.com/Smaug123/WoofWare.PawPrint
synced 2025-10-04 21:58:40 +00:00
33 lines
1.7 KiB
Bash
33 lines
1.7 KiB
Bash
use flake
|
|
DOTNET_PATH=$(readlink "$(which dotnet)")
|
|
SETTINGS_FILE=$(find . -maxdepth 1 -type f -name '*.sln.DotSettings.user')
|
|
MSBUILD=$(realpath "$(find "$(dirname "$DOTNET_PATH")/../share/dotnet/sdk" -maxdepth 2 -type f -name MSBuild.dll)")
|
|
if [ -f "$SETTINGS_FILE" ] ; then
|
|
xmlstarlet ed --inplace \
|
|
-N wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation" \
|
|
-N x="http://schemas.microsoft.com/winfx/2006/xaml" \
|
|
-N s="clr-namespace:System;assembly=mscorlib" \
|
|
-N ss="urn:shemas-jetbrains-com:settings-storage-xaml" \
|
|
--update "//s:String[@x:Key='/Default/Environment/Hierarchy/Build/BuildTool/DotNetCliExePath/@EntryValue']" \
|
|
--value "$(realpath "$(dirname "$DOTNET_PATH")/../share/dotnet/dotnet")" \
|
|
"$SETTINGS_FILE"
|
|
|
|
xmlstarlet ed --inplace \
|
|
-N wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation" \
|
|
-N x="http://schemas.microsoft.com/winfx/2006/xaml" \
|
|
-N s="clr-namespace:System;assembly=mscorlib" \
|
|
-N ss="urn:shemas-jetbrains-com:settings-storage-xaml" \
|
|
--update "//s:String[@x:Key='/Default/Environment/Hierarchy/Build/BuildTool/CustomBuildToolPath/@EntryValue']" \
|
|
--value "$MSBUILD" \
|
|
"$SETTINGS_FILE"
|
|
|
|
xmlstarlet ed --inplace \
|
|
-N wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation" \
|
|
-N x="http://schemas.microsoft.com/winfx/2006/xaml" \
|
|
-N s="clr-namespace:System;assembly=mscorlib" \
|
|
-N ss="urn:shemas-jetbrains-com:settings-storage-xaml" \
|
|
--update "//s:String[@x:Key='/Default/Housekeeping/UnitTestingMru/UnitTestRunner/EnvironmentVariablesIndexed/=WOOFWARE_005FDOTNET_005FLOCATOR_005FDOTNET_005FEXE/@EntryIndexedValue']" \
|
|
--value "$DOTNET_PATH" \
|
|
"$SETTINGS_FILE"
|
|
fi
|