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

vb.net console app loads uxtheme.dll
Levyuk
krwoolf
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
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
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 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
kicke_
Is there anything I can do on the manifest file to prevent this The vb console app was compiled manually.