Kayıtlar

2014 tarihine ait yayınlar gösteriliyor

Bat Dosyası Hazırlama

Resim
Bat Dosyası Hazırlama Call : Path'te bulunan çalıştırılacak dosya çağrılır. xcopy  : Path'teki dosyaları ResourceFiles'dan ServiceBinPath'e kopyalar. @echo off call "D:\Directory\_BATCH_Service_Update\BATCH_Get_Latest_Solutions.bat" set ServiceBinPath="C:\Host\Services\bin" xcopy %ServiceBinPath% %ServiceBinPath%Backup /E /R /Y /I xcopy %ResourceFiles%\*Common.dll %ServiceBinPath% /E /R /Y /I xcopy %ResourceFiles%\*Services.dll %ServiceBinPath% /E /R /Y /I pause @echo off call "D:\Directory\_BATCH_Service_Update\BATCH_Setup.bat" call "D:\Directory\_BATCH_Service_Update\BATCH_Set_Solution_Folders.bat" %ExePath% get %TfsFolder%/*.dll /force /r echo. %ExePath% get %TfsFolder%/*.dll /force /r echo. %ExePath% get %TfsFolder%/*.dll /force /r pause

Console Ekranından Debug

Resim
Console Ekranından Debug Proje properties'inden Debud sekmesinde Command linearguments alanına gerekli args'lar boşlukla eklenir. Proje run edildiğinde ilgili args'ların parametre olarak geldiği görülür. static void Main(string[] args) {                       string currentReleaseNumber = args[0];             string newReleaseNumber = args[1];             string solutionRoot = args[2] ; }

Products and Extensions for Visual Studio

Resim
Microsoft Visual Studio'nun ürün ve eklentilerini aşağıdaki adresten indirebilirisiniz. http://visualstudiogallery.msdn.microsoft.com/

Visual Studio 2013 Color Theme Editor

Resim
Visual Studio 2013 Renk Editörüne aşağıdaki adresten ulaşabilirisiniz. http://visualstudiogallery.msdn.microsoft.com/9e08e5d3-6eb4-4e73-a045-6ea2a5cbdabe

Access to the path denied

Resim
 Access to the path denied! Geliştirmelerimizde herhangi bir adreste yapacağımız dosya Kopyalama/Silme/Güncelleme işlemlerinde alınan " Access to the "path" denied " hatasının çözümü için aşağıdaki çözüm uygulanabilir. Silme İşlemi:  Delete File File . SetAttributes ( filePath , FileAttributes . Normal ); File . Delete ( filePath ); Kopyalama İşlemi:  Copy File File . Copy ( resourceFilePath , destinationFilePath , true ); File . SetAttributes (destinationFilePath , FileAttributes . Normal );

Developer Links

Resim
Developer Links  Geliştiriciler için çok faydalı bazı adresler aşağıdaki gibidir. 1. http://www.codeplex.com/TFSGuide 2. http://tfsbranchingguideii.codeplex.com 3. http://vstt2008qrg.codeplex.com/ 4. http://www.codeplex.com/AppArchGuide 5. http://wcfsecurityguide.codeplex.com/ 6. http://testingguidance.codeplex.com/ 7. http://csharpbestpractices.codeplex.com/ 8. http://perftestingguide.codeplex.com/ 9. http://www.oodesign.com/

C# Dictionary

Resim
C# Dictionary kullanımına bir örnek; private static readonly Dictionary< string , string > _changedResources = new Dictionary< string , string> ; { { "400002" , "Olay" }, { "400003" , "Problem" }, { "400004" , "Talep" }, { "400005" , "Proje Geçişi" }, { "400006" , "Diğer" }, { "400007" , "Küçük İstek" }, { "400008" , "Proje Sonrası Düzeltme" }, { "400009" , "İyileştirme" }, { "400010" , "Proje Sonrası Düzeltme" }, { "400012" , "Projeye Bağlı Diğer Değişiklik" } }; internal static string GetChangeResourceType( int changeOrderId) {   ChngTbl c = new ChngTbl ();   Que...

Progress Bar Percentage

Resim
Progress Bar Percentage Progress Bar kullanımına bir örnek; private void SetDeploymentProgressBarPercentage() {   List < DeploymentItemEntity>  deploymentItemList = GetDeploymentItemList();   int deployedCount = deploymentItemList.FindAll(d => d.IsDeployed).Count;   if (deployedCount > 0) { double totalCount = deploymentItemList.Count; int completedPercentage = Convert .ToInt32((100.00/totalCount)*deployedCount); //progressTfProgressBar.Increment(completedPercentage); progressTfProgressBar.Properties.Stopped = true ; deploymentReportSimpleLabel.Text =  string .Format( MessageResource .PercentNComplated,  completedPercentage);

C # Array Intersect

Resim
C # Array Intersect void Main() { string[] array1 = { "Red", "blue", "green","black" }; string[] array3 = { "Red", "blue", "green","black" }; var results = array1.Intersect(array3, StringComparer.OrdinalIgnoreCase);     Console.Write(results); }