-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build script #18
Comments
What do you mean? |
With MSBuild tool that is a part of .NET framework, see https://github.com/kurumpa/dotSwitcher/blob/master/build_someday.cmd |
Yes, it is possible just drag'n'drop your dotswitcher.sln to MSBuild.exe or you can create .bat file in the dotSwitcher project directory, copy-paste this: @echo OFF
setlocal ENABLEEXTENSIONS
set KEY_NAME="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions"
set MSBUILD_PATH=""
for /f "tokens=3,* delims= " %%a in ('REG QUERY %KEY_NAME% /s /F MSBuildToolsPath') do (
if exist "%%a\MSBuild.exe" (
set MSBUILD_PATH="%%a\MSBuild.exe"
)
)
if %MSBUILD_PATH%=="" (
echo Msbuild path not found in registry
pause
exit /b 1
)
echo %MSBUILD_PATH%
%MSBUILD_PATH% dotSwitcher.sln
pause RUN and it will compile it... |
I still need to target any platform version ;) for now it is only .NET 4.5. Have to migrate also to .NET 2.0 or whatever version can be found in win7 by default |
This depends on program code, i tried to dran'n'drop dotSwitcher to .NET 3.5 it sends me an error: |
That's exactly what i was talking about, and it's not just changing the target, but also changing lots of code ;) i'll try to deal with selection converting first |
I looked up on the source code and notice, that it requires System.Linq that become avaible from .NET 3.5 and System.Threading.Tasks that are become avaible just in .NET 4.0, so if you will change code you need to find functions similar to functions of the linked namespaces, from the one's avaible in older .NET versions namespaces(e.g. .NET 2.0,.NET 3.0 etc) |
Don't build with .Net 4.0 in my case. |
to build the app without VS
The text was updated successfully, but these errors were encountered: