Giter Site home page Giter Site logo

build script about dotswitcher HOT 8 OPEN

kurumpa avatar kurumpa commented on August 29, 2024
build script

from dotswitcher.

Comments (8)

 avatar commented on August 29, 2024

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

from dotswitcher.

kurumpa avatar kurumpa commented on August 29, 2024

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

from dotswitcher.

 avatar commented on August 29, 2024

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

from dotswitcher.

kurumpa avatar kurumpa commented on August 29, 2024

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

from dotswitcher.

 avatar commented on August 29, 2024

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)

from dotswitcher.

kurumpa avatar kurumpa commented on August 29, 2024

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

from dotswitcher.

 avatar commented on August 29, 2024

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

from dotswitcher.

GremL1N avatar GremL1N commented on August 29, 2024

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

from dotswitcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.