Custom MVC 4 Template Walkthrough

Introduction One of the cool features of MVC 4 Tool Update for Visual Studio 2012.2 is the MVC custom template support. This was possible before as in described here, but it required to edit registry to make the custom templates appear in the MVC project wizard.  This new features enables the scenarios where custom templates…

3

When CSC.Exe Generates a Different Size of Assembly From VS IDE

I struggled for the reason why CSC.EXE results in an assembly differently from VS IDE, because VS IDE generates an assembly of 20KB while CSC.exe compiles it in 8KB with the same source code. I checked the compiler options for the two compilers, but I couldn’t find any big difference. I didn’t except it, but…

3

Changing text encodings of output files redirected from PowerShell.

I created a logman setting file as follows:typeperf -q | where { $_ -like “\Phy*” } | foreach { ‘”‘ + $_.Trim() + ‘”‘ } > counter.txt But, logman raised an error reading “Invalid counter path” when I tried to update a counter data collection with the settng file, counter.txt. That’s right. Logman requires the…

1

The public beta 2 of BizTalk Server 2006 R2 has been released.

It’s been long time since I posted the last one. I was pretty busy in working on the WCF adapter documentation for R2.  In addition to the WCF adapters, R2 also has EDI, RFID, and WCF/WinWF interceptors. I think this release has a very high quality.  The WCF adapter has been improved a lot since…

0

BizTalk Server 2006 R2

I think there will be no engine changes in R2, but this product refresh will include a number of interesting features and enhancements. For example, R2 adds EDI, RFID, WCF and WF BAM Interceptors, the WCF adapter and supports the R2 Adapter Framework and new releases of LOB adapters. You can get more information about…

2

Passing arguments from the command line to downstream functions in Powershell

$args is a special variable, an array of all arguments passed to a function on the command line. But, $args is always treated as an array in PowerShell. And It may cause an interesting side effect when passing $args to a downstream function.Suppose we define a function as follows:function t1 { “args : $args, $($args.count)”}If you…

2

How to create a function name to the global scope in a Powershell script file

I created a script named s.ps1 to define a function named s1. # s.ps1function s1 {             //} But, after I run this script, the s1 function is not available in the global scope like: .\S.ps1S1s1′ is not recognized as a cmdlet, function, operable program, or script file.  There are two ways to add the function…

3

How to create multiple or jagged arrays in Powershell

For me, it was not apparent to create multiple dimensional or jagged arrays in Powershell. I tried the following command, but it only made a single dimensional array: $b = ((‘a’,’a’)) $b.Count 2 Bruce Payette gave me the answers for this basic question.   Here is how to create multiple arrays: $x = new-object “int32[,]”…

2

You will love the new shell named Powershell!

When I installed Windows SDK to test Indigo stuff, I found another toy named Powershell. Powershell is the new name of MSH code named Monad. It is a shell or command interpreter based on .NET framework. I thought the cmd.exe shell is too simple for practical uses. But, Powershell is simply great!. It is easy,…

5

10 more BizTalk samples are live in the MSDN Web site

10 more BizTalk samples are live in the MSDN Web site. I wrote four of them as follows: 1) BAM and HAT CorrelationThis sample demonstrates how to use the enhanced BAM features, and how to customize BAM and HAT integration. This sample also includes a Windows Forms application customizing BAM and HAT integration for the sample…

1