Skip to content
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

Open
kurumpa opened this issue Oct 29, 2015 · 8 comments
Open

build script #18

kurumpa opened this issue Oct 29, 2015 · 8 comments

Comments

@kurumpa
Copy link
Owner

kurumpa commented Oct 29, 2015

to build the app without VS

@ghost
Copy link

ghost commented Oct 29, 2015

What do you mean?
With other IDE's/Compilers?

@kurumpa
Copy link
Owner Author

kurumpa commented Oct 30, 2015

With MSBuild tool that is a part of .NET framework, see https://github.com/kurumpa/dotSwitcher/blob/master/build_someday.cmd

@ghost
Copy link

ghost commented Oct 30, 2015

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...

@kurumpa
Copy link
Owner Author

kurumpa commented Oct 30, 2015

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

@ghost
Copy link

ghost commented Oct 30, 2015

This depends on program code, i tried to dran'n'drop dotSwitcher to .NET 3.5 it sends me an error:
about LowLevelAdapter.cs & TrayIcon.cs are "Default parameter specifiers are not permitted"
so you need first edit them, and change Targeted .NET in project Properties(In VS)

@kurumpa
Copy link
Owner Author

kurumpa commented Oct 30, 2015

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

@ghost
Copy link

ghost commented Oct 31, 2015

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)
I tried to compile it with .NET 4.0 and it works!
Your newer functions selection convert & CAPS lock language change must be add links to new namespaces from .NET 4.5, so i don't know will it compile with them...
My version of source code from releases(latest v0.45-alpha).

@GremL1N
Copy link

GremL1N commented May 30, 2016

Don't build with .Net 4.0 in my case.
Microsoft (R) Build Engine версии 4.6.1055.0
[Microsoft .NET Framework версии 4.0.30319.42000]
Error:
... not found "AxImp.exe" or .NET Framework SDK 1 not installed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants