At Mix08, the Silverlight 2 Poster was a hot item given out in many of the session. If you didn’t get yours or if you couldn’t make it, you can feel free to download and print your own!
Silverlight 2 Developer Poster – Silverlight 2 Developer Poster
Some development in .NET, Angular, TypeScript, CSS, and also something completely different
At Mix08, the Silverlight 2 Poster was a hot item given out in many of the session. If you didn’t get yours or if you couldn’t make it, you can feel free to download and print your own!
Silverlight 2 Developer Poster – Silverlight 2 Developer Poster
This article has cheat sheets for retrieving various bits of ASP.NET runtime information. For each bit of info, there is:
* A code snippet for retrieving it in a page, with a link to MSDN
* Description, sometimes explanation
* The value for the live ASP.NET app backing this site”
ASP.NET Runtime Cheat Sheet – HttpRequest, HttpRuntime, AppDomain and friends
I have a love/hate relationship with the ASP.NET Session. It’s such a convenient place to put things, but when you start putting applications into production there are a number of less-than-obvious edge cases that can come up and bite you.
Most often the Session is used when managing state over a long process like a multi-step wizard or questionnaire. However, when people use the Session, they often lean on it a little. They’ll bake it into their design so deep that when it doesn’t work, they’re screwed. That’s not to say they shouldn’t be able to lean on it, I’m just saying that there’s a lot of things going on with Session (not just on ASP.NET, but other frameworks as well) in order to get it to look seamless.
Scott Hanselman’s Computer Zen – Troubleshooting Expired ASP.NET Session State and Your Options
Last week I gave a presentation on mock objects for Software Professionals of Alaska. Once the PowerPointy hand-waving was out of the way, I illustrated the concepts with code examples using Rhino Mocks. I thought I was well-versed in Rhino Mocks before I started, but in the process of preparing the presentation I realized there was a lot that I didn’t know or had forgotten. So I distilled all the main facts and features down into a 3-page quick reference of tables and example usage. You might argue that 3 pages makes it a ‘slow reference,’ but regardless I still think it’s useful to see all the basics stripped down to the bare minimum. Much of the content came from the Rhino Mocks Documentation Wiki, so look there first if you need more details on a particular feature.
For a (web-)project I am working on, I needed to copy the content of 1 website to a sub-folder of another website after the project was built. This enables the 2 projects being separately developed and deployed, but also allows the one project being deployed as a sub-site of the other one. Got it? 🙂
This is how I did this:
In the project file of the sub-project:
<PropertyGroup>
<MyOutputFolder>C:ProjectOutputFolder</MyOutputFolder>
<OutputSubFolder>SubFolder</OutputSubFolder>
</PropertyGroup>
<ItemGroup>
<MyCopyItems Include="$(MSBuildProjectDirectory)***.aspx" />
<MyCopyItems Include="$(MSBuildProjectDirectory)***.htm?" />
<MyCopyItems Include="$(MSBuildProjectDirectory)***.js" />
<MyCopyItems Include="$(MSBuildProjectDirectory)***.gif" />
<MyCopyItems Include="$(MSBuildProjectDirectory)***.jp?g" />
<MyCopyItems Include="$(MSBuildProjectDirectory)***.png" />
<MyCopyBin Include="$(MSBuildProjectDirectory)bin***.dll" />
</ItemGroup>
<Target Name="MyPostBuildTarget">
<Copy SourceFiles="@(MyCopyItems)"
DestinationFiles="@(MyCopyItems->'$(MyOutputFolder)$(OutputSubFolder)%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(MyCopyBin)"
DestinationFolder="$(MyOutputFolder)bin" />
</Target>
<BuildDependsOn>$(BuildDependsOn);MyPostBuildTarget</BuildDependsOn>
This gives something like:
<!-- Copy project output to defined folder -->
<PropertyGroup>
<BuildDependsOn>$(BuildDependsOn);MyPostBuildTarget</BuildDependsOn>
<MyOutputFolder>C:ProjectOutputFolder</MyOutputFolder>
<OutputSubFolder>SubFolder</OutputSubFolder>
</PropertyGroup>
<ItemGroup>
<MyCopyItems Include="$(MSBuildProjectDirectory)***.aspx" />
<MyCopyItems Include="$(MSBuildProjectDirectory)***.htm?" />
<MyCopyItems Include="$(MSBuildProjectDirectory)***.js" />
<MyCopyItems Include="$(MSBuildProjectDirectory)***.gif" />
<MyCopyItems Include="$(MSBuildProjectDirectory)***.jp?g" />
<MyCopyItems Include="$(MSBuildProjectDirectory)***.png" />
<mycopybin include="$(MSBuildProjectDirectory)bin***.dll" />
</ItemGroup>
<Target Name="MyPostBuildTarget">
<Copy SourceFiles="@(MyCopyItems)"
DestinationFiles="@(MyCopyItems->'$(MyOutputFolder)$(OutputSubFolder)%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(MyCopyBin)"
DestinationFolder="$(MyOutputFolder)bin" />
</Target>
Some references on copying project files with MSBuild:
MSDN MSBuild Reference – Copy Task
Channel 9 Wiki: Copy Built Output Of A Visual Studio Project
SharpDevelop Community – Copy config post build
How To: Insert Custom Process at Specific Points During Build
How To: Add Custom Process at Specific Points During Build (Method #2)
Update: Unlike in C#, in VB.Net the subfolders are not taken into account with the namespace. So the example above in point 10 will be: Namespace + filename
.NET Framework Developer’s Guide:
Design Guidelines for Developing Class Libraries
.NET Framework General Reference:
Design Guidelines for Class Library Developers
Speed up Visual Studio 2005
I wanted save some people some time looking for providers for their non-Microsoft databases to use with .NET. Please keep in mine I have not tried or used all of these providers / tools but have found them from searching and asking around. Based on some of the feed back and comments I added a few others.
Joseph Guadagno: Database Drivers not provided by Microsoft (Updated)
From Jean-Paul S. BoodHoo’s Blog: Develop With PassionThat last part in the title is to indicate that for me, this is
something that has changed several times over the past year with a
change happening even within the last month.
Let me stress the fact that I am a big automated build junkie, and
am not really even a fan of compiling from within studio. To that end I
do the majority of my work using studio + ReSharper as the editor, and
NAnt (currently) as the compile/test tool coupled with FinalBuilder as
my deployment tool.
From Jean-Paul S. BoodHoo’s Blog: Develop With PassionThat last part in the title is to indicate that for me, this is
something that has changed several times over the past year with a
change happening even within the last month.
Let me stress the fact that I am a big automated build junkie, and
am not really even a fan of compiling from within studio. To that end I
do the majority of my work using studio + ReSharper as the editor, and
NAnt (currently) as the compile/test tool coupled with FinalBuilder as
my deployment tool.