|
Is it possible to build a .NET 1.1 project as a .NET 2.0 project without converting the project files? I need to continue developing the applications in VS 2003 but build as .NET 1.1 and .NET 2.0. I am hoping this can be done via a build script but I have tried using msbuild with my .csproj files with no luck.
Any ideas gratefully received.
|
|
|
|
|
You don't need to 'build as .NET 2.0' as you put it. If you're confident that it's compatible, you can use a .config file as follows:
<configuration>
<startup>
<supportedRuntime version="v2.0.50727" />
<supportedRuntime version="v1.1.4322" />
</startup>
</configuration> The file must be named the same as your program but with a .config extension, so if your program is MyApp.exe, name the config file MyApp.exe.config. If you already have an .exe.config file, add the <startup> section to the existing configuration file.
The documentation here[^] claims that the version that the software was built for will be used if it's installed, but my experiment indicates that this is incorrect: if a configuration file is present and specifies the runtime version to use, the first version specified which is installed is used. So if you want it to run on .NET 1.1 if available, or 2.0 if only that is available, specify v1.1.4322 first. The above file will use 2.0 if available falling back to 1.1 if 2.0 is not installed.
A Visual Studio 2005 .csproj file is an MSBuild input file, a 2003 .csproj file is not. MSBee[^] allows MSBuild to target .NET 1.1; however, you will need to (presumably) import your code into VS2005.
A word on debugging: if your application will load into .NET 1.1 you must use VS2003 to debug; if it will load into .NET 2.0 you must use VS2005. Neither version can debug the other's code. You won't get any warning, it will just stop debugging immediately after it starts.
Those are the rules for EXEs. For DLLs the EXE will control the version of the framework that's loaded, and you have to use that version - only one version of the framework can be loaded into a process. If the EXE is not itself a .NET application and you're producing a class for COM Interop, and the .NET Framework is not already loaded by the process, the latest version of .NET is loaded (not the version marked in the registry for the object). You can again control this with an .exe.config file (yes, even for native code programs that were not written with .NET in mind).
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
hi friends,
Does anyoone know how to use Nero SDk for burning DVD.
If so, pls let me know.
Thank you
Jack
|
|
|
|
|
Did you download the SDK because it'll surely have the documentation included.
AliAmjad(MCP)
|
|
|
|
|
Hi,
I have to create a SQL CE database file (*.sdf) on my PC. I intended to call several web services to get data and create a 'localDB.sdf' with a program running on my PC. I have created windows application project but I could not add reference to the System.Data.SqlServerCE assembly.
The System.Data.SqlServerCe didn't appear in the .net references tab. I had browsed and added the assembly manually but it didn't work because my framework is 2.0 and the assembly looks for CF 2.0.
How can I use the SqlCeEngine class in a Windows application? Or can I create a *.sdf file using a different class? Can I use CF assemblies on my PC?
thanks,
- ferudun
|
|
|
|
|
Please don't cross post. You asked this same question here[^] about 10 minutes earlier than you posted this one.
The people here answer questions on a volunteer basis and may not respond in a timeframe you desire or find acceptable.
|
|
|
|
|
it seems that voip protocols (h323 and sip) have all call features so where is the TAPI location in telephony architecture?
|
|
|
|
|
TAPI[^] is a programming API that implements the H.323 protocal, among other things.
H.323 is a protocol, which simply defines how things should work. TAPI (atleast 3.1) is an actual implementation of H.323.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
I have a window service and i have a Web Service reference in it.
The web service is on a local machine which is in my network.
The app.config file of the window service is containing the key for the web service.
When i make setup of the window service the its not dynamically changing the machine name even when i change the key in the config. During the run of the service it says cant find the machine "acb" which is name of the machine which is in my local network from where i was referring the web service.
When i try to find out what is wrong i find that in the Project there is a Folder My Project Which is Containing a file Settings.settings Which is containing a key for that web servce. any Idea How That can be made dynamic
Regards
|
|
|
|
|
I write mostly console programs and every once in a while I want a program to behave differently depending on whether or not the input or output is a pipe (or redirected).
A few years ago I read a Dr. Gui article describing how to use the PeekConsoleInput Windows API function to detect whether or not input is a pipe, and I've been using that for input.
But today I need a program to detect whether or not output is a pipe. I found that the WriteConsole Windows API function works pretty well for detection of piped output. (With the exception that redirecting to CON reports false.)
I'm wondering whether or not anyone else has another method for detecting these situations.
|
|
|
|
|
I took a look at how the C runtime implements _isatty . This function reads flags associated with every file handle given out by the CRT. The _ioinit function in ioinit.c initialises the arrays which hold these flags.
The code first calls GetStartupInfo to find out if the parent process provided a handle table. The code here is a bit complicated as the C runtime cheats a bit and uses cbReserved2 and lpReserved2 members to hand other handles to child processes - it basically just copies the whole handle table to the new process. I think you can omit this bit.
If the handle table didn't provide the information already - which is the situation a .NET program is in - it calls GetStdHandle using the three standard handle identifiers, STD_INPUT_HANDLE, STD_OUTPUT_HANDLE and STD_ERROR_HANDLE. If this returns a valid handle (not INVALID_HANDLE_VALUE [-1] or NULL [0]) it calls GetFileType to find out what it is. You cannot differentiate between the console and a serial or parallel port, all will return FILE_TYPE_CHAR .
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
The Dr. Gui article uses GetStdHandle , and then PeekConsoleInput to test.
|
|
|
|
|
hi,
i have a windows project in C#(visual studio 2005) that uses some DLL i wrote in different projects.
i want to make this application to run from the web page on the local computer(ActiveX,OCX).
how can i do it?
thanks,
Samy
|
|
|
|
|
You can't run an entire windows forms app in a web form. You can however run a windows control in a web form. Click[^]
|
|
|
|
|
thanks. it works for me with the simple examples.
if the windows project has some refrencess to new DLL's ? whould the transformation still be possible?
how will the additional DLL's will be put in the client computer?
|
|
|
|
|
I have no idea. I haven't done any significant ASP.NET develope in years and never what you're attempting. These questions are more for the ASP.NET forum.
|
|
|
|
|
Hi all ,
I have a table named "Permissions" which I read Application User Permissions from that table when the user enters username and password an Logon Window , After that I Load the user permissions in a ArrayList , Now I'm going to keep my current user permissions(ArrayList Object) persistent , because I want to access it in different parts of application for checking permissions. , Is it suitable to save it using AppDomain or you have a better suggestion? Thanks in advance .
-- modified at 13:58 Saturday 27th October, 2007
|
|
|
|
|
If it's going to be used in one application, then why not simply store it in a static class? Then everywhere that you need it, you will be able to access it.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks , But
This win app is on network and several users can run this app simultaneously , doesn't it cause any problem?
|
|
|
|
|
Sorry for taking so long to get back to you. Anyway, here's the answer.
DotNetWWW wrote: Thanks , But
This win app is on network and several users can run this app simultaneously , doesn't it cause any problem?
No, because each user will have this app running in a different process space.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Dear All,
I have created a windows installer package for my VB.NEt project. When i install it to another computer, it is displayning a message "This setup requires the .NET Framework version 1.1.4322. Please install the .NET Framework and run this setup again. The .NET Framework can be obtained from the web. Would you like to do this now?" How can i avoid this message, when i creating setup project, or How can I integrade .NET Framework with my setup project.
Can't we run .NET Setup files without installing .NET Framework?
Pls help
|
|
|
|
|
dimuthuvbnet wrote: How can i avoid this message
Install the .NET Framework 1.1 and it's service packs.
dimuthuvbnet wrote: How can I integrade .NET Framework with my setup project.
You can't bundle it into your .MSI. It has to be run as a seperate installation. That CAN be launched from an .EXE setup. Just Google for ".NET Framework BootStrap Install".
dimuthuvbnet wrote: Can't we run .NET Setup files without installing .NET Framework?
No. One of the prereq's built into the MSI is the .NET Framework must be installed.
|
|
|
|
|
dimuthuvbnet wrote:
Can't we run .NET Setup files without installing .NET Framework?
Nope, it is a requirement.
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
hello everyone
im currently learning c# and i recently discovered some strange behaviour in the .NET framework 2.0 (using VS2005 Pro). i wrote my own textbox which does, along with other things, change the Borderstyle on the leave event. but it doesnt work, the below code has the effect that when using the mouse to leave the textbox everything works, but with TAB, youre trapped in the box. changing any other property instead of borderstyle is not a problem. only with this very property it acts weird.
anybody had this before? is this a bug or did i miss something?
thanks for reading and maybe answering this!
public class TextBoxTest : TextBox
{
protected override void OnLeave (EventArgs e)
{
BorderStyle = Borderstyle.Fixed3D;
base.OnLeave (e);
}
}
PS: first post here, so please be nice if i did something wrong
|
|
|
|
|
Okay guys, just found this one on the microsoft feedback page:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=185568
seems like this one is not solvable atm
thx for reading though
|
|
|
|