Tuesday 16 October 2012

Enable Treat Warnings as Errors in TFS Build

Hi ,


Here you go with the settings so that the warning will get treated as error in Team Build(TFS 2010).

Provide below value for the section MSBuild Arguments(See screen shot)

/p:TreatWarningsAsErrors="true"

 
And after that all the warnings would get treated as error J

VS2010 vs. SQL Assistant

Hi guys,


My VS2010, started acting VERY weird! Upon startup, it gave my mysterious errors like “Could not load module this and that”.

And when I tried to open a solution, it just “Stopped working”, asking me if I wanted to debug the program. Yeah right, let me just debug visual studio 


Anyways, I ran devenv.exe with the /log switch, and got a pretty sweet XML file. It pointed me to what errors did occur during startup.


I did a Google search, and stumbled across this one: http://www.softtreetech.com/support/phpBB2/viewtopic.php?p=27786&sid=24857705cf905400d2125e79a4b72565

I realized that I just installed SQL Assistant, and guess what, I did not check the checkbox “ Integrate with Visual Studio 2010”. Just as the above link explains.


One guy at the forum, puts it down this way:


I found a solution. I installed SQL Assist with the the Visual Studio Addin checked, even though I don't want it.

Your installer is telling Visual Studio to load the Addin, even if you don't choose to install it.

Well, that’s what I did as well, and now it’s working.
Thanks,

Monday 8 October 2012

TFS2010: Reconcile Workspace after Gated Checkin is weird if Visual Studio 2010 is Elevated

The Gated Check-in builds in TFS2010


A nice Article to read about “The Gated Check-in build in TFS2010”.

Here you go with the link

Thanks,
Md. jawed

Unattained Installation of Team Visual Studio 2012


Before we start our Silent Installation of Visual Studio 2012. We have to take care of few as mention below:
1.       IF SOURCE FOLDER CONTAINS SPACE(S) ANYWHERE IN THE ENTIRE PATH, INSTALLATION WILL FAIL.
2.       Create a copy of AdminDeployment.xml (to serve as backup in case any unwanted changes occur in original file)

3.        Change value of attribute NoWeb="default" to NoWeb="yes" in AdminDeployment.xml. See the highlighted section.
ORIGINAL:
http://schemas.microsoft.com/wix/2011/AdminDeployment
">
   NoWeb="default"/>
  

CHANGED:
http://schemas.microsoft.com/wix/2011/AdminDeployment
">
   NoWeb="yes"/>
  
3. Copy CHANGED AdminDeployment.xml into packages sub-folder of SOURCE FOLDER.
Now the below Script will do the magic to installed VS2012 in Silent, Unattained mode.
@echo off
echo ========================================================
set application=Visual Studio 2012 Premium
SET ERRORLEVEL=0
SET sourceLocation=D:\VS2012Premium\
SET setupFile=%sourceLocation%vs_premium.exe
SET adminFile=%sourceLocation%AdminDeployment.xml
SET logFileLocation="D:\Logs\Installations\vs2012_premium.log"
echo Installing %application% ....
echo SourceLocation=%sourceLocation%
echo setupFile=%setupFile%
echo adminFile=%adminFile%
echo logLocation=%logFileLocation%
:check
IF EXIST "%setupFile%" goto run
echo sourceLocation doesnot exist
SET ERRORLEVEL=1
goto end
:run
echo running installation file.....
"%setupFile%" /adminfile "%adminFile%" /quiet /norestart
:end
IF %ERRORLEVEL% == 0 (
                ECHO instalation done SUCCESSFULLY.
) ELSE (
                ECHO instalation FAILED. ERROR LEVEL %ERRORLEVEL%.
)
echo ========================================================
pause
exit
~jawed

Unattained Installation of Team Foundation Server 2012


Here you go with the command to installed Team Foundation Server 2012 silently or Unattained.

Create bat file and name it’s as TFS2012.cmd file.  And paste the below code in TFS2012.cmd,
When you are done just double click the cmd for some time and you are done with the installation of tfs2012.
                @echo off
echo ========================================================
set application=Team Foundation Server 2012 x64
SET ERRORLEVEL=0
set sourceLocation="D:\Team Foundation Server 2012\Team Foundation Server 2012 x64\tfs_server.exe"
set logFileLocation="D:\Logs\Installations\TFS2012-X64.log"
echo Installing %application% ....
echo SourceLocation=%sourceLocation%
echo logLocation=%logFileLocation%

:check
IF EXIST %sourceLocation% goto run
echo sourceLocation doesnot exist
SET ERRORLEVEL=1
goto end

:run
echo running installation file.....
%sourceLocation% /q /i /norestart /l*v %logFileLocation%

:end
IF %ERRORLEVEL% == 0 (
                ECHO instalation done SUCCESSFULLY.
) ELSE (
                ECHO instalation FAILED. ERROR LEVEL %ERRORLEVEL%.
)
echo ========================================================
pause
exit

Thanks,
Md. Jawed

Thursday 4 October 2012

What's New with TFS 2012

Javascript unit tests using QUnit

I would like to recommend you few links which would be helpful for you to go ahead.



To know more about QUNIT and create you first script suing Qunit you can follow below link:

http://net.tutsplus.com/tutorials/javascript-ajax/how-to-test-your-javascript-code-with-qunit/

To Integrate JavaScript Unit testing into your website and enables to run JavaScript unit tests from Visual studio you can look into below open source tool.

http://chutzpah.codeplex.com/

Hope this would help you!!

Thanks!!

Announcing Git Integration with TFS

http://blogs.msdn.com/b/bharry/archive/2012/08/13/announcing-git-integration-with-tfs.aspx