vb.net console app loads uxtheme.dll

Hi,

I was testing out for how to make vb.net not load vb.dll at runtime and the code is like this:

Imports System
Module MainModule
Sub Main()
Dim s1 As String = "abc"
Dim s2 As String = "abc"
If String.Equals(s1,s2) Then
Console.WriteLine("done")
Console.ReadLine( )
End If
End Sub
End Module

The above code was compiled as a console app. Strangely I found that the app loaded uxtheme.dll at runtime. Equivalent code with c# did not load the dll:

using System;
static class MainClass {
static void Main( ) {
string s1 = "abc";
string s2 = "abc";
if ( string.Equals(s1, s2) ) {
Console.WriteLine("done");
Console.ReadLine( );
} // end if
} // end Main
} // end class

I am just curious about this. Is there a special reason behind Or is this merely some kind of bug



Answer this question

vb.net console app loads uxtheme.dll

  • Levyuk

    Yes, the IDEs do perform differently. The auto-correct features of vb.net is better and it reformat the document continuously during the typing. The syntax of c# is easier to read but not that easy to write / type. :-)

  • krwoolf

    If it's the manifest, then the manifest will include a reference to the dll - remove it.

  • BurnChrome

    Does the IDE behave differently I thought that was the whole point of an integrated IDE.

    braces aren't so bad. I find it hard to read VB.NET and differentiate between arrays and function calls :-)



  • Sherrill34643

    On deeper thought, I have reopened the question; sorry for this.

    Why is there a manifest file for a console app and where can I find it In fact do you mean there is some kind of global manifest file for vb.net with console apps. The point is that I did not see the uxtheme.dll with c#.


  • Thomas LEBRUN

    I agree totally on the point of vb.net carrying the baggage of vb6. But somehow I think I will miss the very-user-friendly IDE of vb.net as compared to c#. I need to get accustomed to typing the brackets & braces :-(

  • DGE0266

    That dll draws theme enabled apps. It's possible the manifest file is responsible for this, but either way there's no logical reason for this to occur. It would be a low priority bug IMO (i.e. it doesn't break anything, so it may not even have been noticed ).



  • Ivan Ooi

    If there's not one visible, then there mustn't be one generated, and it must just be a bug.

    C# and VB.NET are two different pathways into the .NET framework, if you want to avoid this, it sounds like you need to use C#.



  • andyboy

    It's my opinion that C# is a better choice, because of baggage that VB.NET brings from VB6, but then, I prefer the C# syntax as well :-)



  • sumesh_tewatia

    I see. Thanks again for the reply.

    I think I will be making the choice to using c#. I really like the syntax of vb but it seems to me that vb.net is just doing too many interesting things behind the scene and there is no means to turn them off conveniently.


  • jasonc65

    I will give a try again. Many thanks.

  • kicke_

    Many thanks for the very prompt reply.

    Is there anything I can do on the manifest file to prevent this The vb console app was compiled manually.

  • vb.net console app loads uxtheme.dll