#!/bin/bash


if [ ! -d .git ];
then
	echo "in a git directory plz"
	exit 0
fi

if [ $# -eq 0 ];
then
	echo "try with one of these"
	find . -name *.sln
	exit 0
fi

#/c/"Program Files (x86)"/"Microsoft Visual Studio"/2019/Community/MSBuild/Current/bin/MSBuild.exe //t:Restore //t:Build //consoleloggerparameters:ErrorsOnly $@ 
/c/"Program Files"/"Microsoft Visual Studio"/2022/Professional/MSBuild/Current/bin/MSBuild.exe //t:Restore //t:Build //consoleloggerparameters:ErrorsOnly $@ 

