.NET 2.0 application template

Hi!

How to create an application template like the one presented here: http://msdn.microsoft.com/coding4fun/weekend/apptemplate/default.aspx, but for .NET 2.0

I'm new to the whole .NET thing and it's quite confusing for me.
I tried to follow the steps in the tutorial mentioned above and just changed reference to Microsoft.DirectX (which should i use: "version 2.0.900.0 runtime 2.0" or "version 2.0.0.0 runtime 2.0.50727" ), but should i also use 2.0 versions of Microsoft.DirectX.Direct3D and Microsoft.DirectX.Direct3DX I couldn't find them.
Should i use files in Common directory starting with letter "w" or the others
If I don't add the last 2 references and add only Microsoft.DirectX version 2.0.0.0 runtime 2.0.50727 I get following error:

Error 1 The type or namespace name 'Caps' could not be found (are you missing a using directive or an assembly reference )

And which version of Microsoft.DirectX.Direct3DX should I use in .NET 1.1 template I've got 8 available references - they all got runtime v1.1.4322 and only differ in verison 1.0.2902-1.0.2909.

[edit]
I just finished reading BasicHLSL 2.0 documentation and now i know that i don't need Microsoft.DirectX.Direct3D and Microsoft.DirectX.Direct3DX. But which version of Microsoft.DirectX should i use BasicHLSL sample uses v2.0.0.0 and in the documentation is written "This assembly is called “Microsoft.DirectX.dll”, and has a version of 2.0.900".


Answer this question

.NET 2.0 application template

  • steve6063

    In the article I have based it on the October release of the .Net 1.1 DirectX SDK and Sample framework. To get it to work with the Beta release of DirectX you have to change more code files then just the referances. As the application uses the sample framework you will need to make sure that you also change each of the code files in the common directory as well as the base code file. This needs to be done as alot of the calls to the new beta code have changed from the production release.
    If you would like I can put together a template for the Beta code.

  • bertschb

    If it wouldn't be a problem for you I would be very grateful.

    You mentioned that "w" files are for .NET 2.0. So if i would copy them into Common folder, add reference to Microsoft.DirectX (i will try both versions :) ) and simplify i.e. BasicHLSL for .NET 2.0 sample code to obtain the base code file would it be enough What about that Caps class that is missing

    [edit]
    I used "w" files, used Microsoft.DirectX version 2.0.0.0 (it was crashing when using the other one), copied EmptyProject.cs and EmptyProject.fx from EmptyProject sample, changed in EmptyProject.cs Caps to Capabilities, ResourceType.Textures to ResourceType.Texture, txtHelper.DrawTextLine into txtHelper.DrawStringLine and it works, but I get about 700fps instead of 1400 in .NET 1.1. Same thing happens when comparing BasicHLSL 1.1 and 2.0.

  • Apri

    I will run one together for you tonight and post it..

  • Matt_FL

    It's very easy. Once you have a solution all ready for templating. You just goto File -> Export Template and there you go...It will export the template to the my documents/visual studio directory and you can pick it up from there. What is cool is now if you start a new project you can pick the template from the My templates pane.

    I hope this helps
    Take care.


  • RobertP2

     

    I have a working template completed and formatted to load just like one of the StarterKits. It can be downloaded from here



  • Victor17

    Thanks!!!
  • .NET 2.0 application template