Build Visual Studio project through the command line

Create a .bat file called: Manual_MSBuild_ReleaseVersion.bat Put this in the .bat file. REM you’ll have to find the “latest” version of where msbuild.exe resides on your machine.. here are some popular versions/locations REM set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v2.0.50727 REM set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v3.5 REM set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v4.0.30319 REM set msBuildDir=C:\Program Files (x86)\MSBuild\12.0\Bin set msBuildDir=C:\Program Files (x86)\MSBuild\14.0\Bin call “%msBuildDir%\msbuild.exe” MySolution.sln /p:Configuration=Release /l:FileLogger,Microsoft.Build.Engine;logfile=Manual_MSBuild_ReleaseVersion_LOG.log … Read more

How to get current user who’s accessing an ASP.NET application?

The quick answer is User = System.Web.HttpContext.Current.User Ensure your web.config has the following authentication element. <configuration> <system.web> <authentication mode=”Windows” /> <authorization> <deny users=”?”/> </authorization> </system.web> </configuration> Further Reading: Recipe: Enabling Windows Authentication within an Intranet ASP.NET Web application

Gradle proxy configuration

Refinement over Daniel’s response: HTTP Only Proxy configuration gradlew -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=3128 “-Dhttp.nonProxyHosts=*.nonproxyrepos.com|localhost” HTTPS Only Proxy configuration gradlew -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=3129 “-Dhttp.nonProxyHosts=*.nonproxyrepos.com|localhost” Both HTTP and HTTPS Proxy configuration gradlew -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=3128 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=3129 “-Dhttp.nonProxyHosts=*.nonproxyrepos.com|localhost” Proxy configuration with user and password gradlew -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=3128 – Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=3129 -Dhttps.proxyUser=user -Dhttps.proxyPassword=pass -Dhttp.proxyUser=user -Dhttp.proxyPassword=pass -Dhttp.nonProxyHosts=host1.com|host2.com worked for me (with gradle.properties in … Read more