473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Targeting .NET 1.0

I'm building a .NET application that I want to be as compatible as
possible. Hence, I want to target .NET 1.0. I followed the
instructions in the VS online documentation which basically consisted of
creating this configuration file:

<?xml version ="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.0.3705" />
</startup>
<runtime>
<assemblyBinding ...appliesTo="v1.0.3705">
<dependentAssembly>
<assemblyIdentity .../>
<bindingRedirect oldVersion="..." newVersion="1.0.3300.0"/>
</dependentAssembly>
...

However, it didn't work. I added this configuration file both to my
project and the associated setup project. The setup says that .NET
1.1.4322 is required.

Do I need to tell my project to *use* this configuration file somehow?
Do I need to do something different for the setup project? Please help!

-- Todd Brown
Oct 17 '05 #1
2 1502
Update: I've successfully managed to make the application work against
..NET 1.0 using the configuration file shown below, but I'm still having
trouble with the installer. I create the installer then, after the
fact, change the SupportedRuntime list in the Setup.Ini file, but that
doesn't work (I suspect because the MSI still knows what version it's
targeting.) Does anyone know how to configure the Setup project so that
it targets the correct version(s) of .NET?

-- T

Todd Brown wrote:
I'm building a .NET application that I want to be as compatible as
possible. Hence, I want to target .NET 1.0. I followed the
instructions in the VS online documentation which basically consisted of
creating this configuration file:

<?xml version ="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.0.3705" />
</startup>
<runtime>
<assemblyBinding ...appliesTo="v1.0.3705">
<dependentAssembly>
<assemblyIdentity .../>
<bindingRedirect oldVersion="..." newVersion="1.0.3300.0"/>
</dependentAssembly>
...

However, it didn't work. I added this configuration file both to my
project and the associated setup project. The setup says that .NET
1.1.4322 is required.

Do I need to tell my project to *use* this configuration file somehow?
Do I need to do something different for the setup project? Please help!

-- Todd Brown

Oct 18 '05 #2
I've managed to solve my problem, and I thought I'd share my solution in
case it helps someone else.

Apparantly, it's possible but not advisable to build against .NET 1.0
with VS 2003. If you really need to build against .NET 1.0, use VS
2002, which can be installed alongside VS 2003.

However, you can specify that your .NET 1.1 application will also work
with .NET 1.0 (the inherent danger here, of course, is that you're using
a feature unique to .NET 1.1). To do this, go to the project's property
pages (Project->Properties). Under "Common Properties" and then
"General", in the "Application" section is a property called "Supported
Runtimes". To target 1.0, click on the property and then click the
"..." button. You'll be allowed to specify 1.1, 1.0, or both. The
result of this is that it modifies the configuration file
(project.config) for the project along the lines specified in my last post.

The last piece of the puzzle is configuring your Setup Project so that
it'll run if the client computer only has 1.0 installed. Right-click on
your setup project in the Solution Explorer, select View->Launch
conditions. You'll see Launch Conditions and under that, .NET
Framework. If you click on .NET Framework, the property page for that
will contain a property "SupportedRuntimes"; add 1.0.3705, separated by
a semicolon.

Then you'll be good to go.
Todd Brown wrote:
Update: I've successfully managed to make the application work against
.NET 1.0 using the configuration file shown below, but I'm still having
trouble with the installer. I create the installer then, after the
fact, change the SupportedRuntime list in the Setup.Ini file, but that
doesn't work (I suspect because the MSI still knows what version it's
targeting.) Does anyone know how to configure the Setup project so that
it targets the correct version(s) of .NET?

-- T

Todd Brown wrote:
I'm building a .NET application that I want to be as compatible as
possible. Hence, I want to target .NET 1.0. I followed the
instructions in the VS online documentation which basically consisted
of creating this configuration file:

<?xml version ="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.0.3705" />
</startup>
<runtime>
<assemblyBinding ...appliesTo="v1.0.3705">
<dependentAssembly>
<assemblyIdentity .../>
<bindingRedirect oldVersion="..." newVersion="1.0.3300.0"/>
</dependentAssembly>
...

However, it didn't work. I added this configuration file both to my
project and the associated setup project. The setup says that .NET
1.1.4322 is required.

Do I need to tell my project to *use* this configuration file somehow?
Do I need to do something different for the setup project? Please help!

-- Todd Brown

Oct 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: andy | last post by:
I wan't to write a small compiler for a small language with some experimental features. I want the target to be portable. I'm evaluating both JVM and Python Virtual Machine, both of which seem to...
3
by: John Bailo | last post by:
This week, the week of Linux Expo It's all about the desktop and it's all about Novell. Can there be any doubt that Parmisano is gonna sandpaper Bill Gate ass with Suse? With IBM hiring...
5
by: Hemanth | last post by:
Hello there, I'm running a script that opens a popup window (which is basically a form with checkboxes and a submit button). When I click the submit button I want to run a PHP script and target...
2
by: Özden Irmak | last post by:
Hello, I've read in some websites that you need some sort of tweak (a config file) to do this... Let me give you a specific example...I'm mostly interested in developing components and user...
2
by: Todd Brown | last post by:
I'm building a .NET application that I want to be as compatible as possible. Hence, I want to target .NET 1.0. I followed the instructions in the VS online documentation which basically consisted...
1
by: sundarvenkata | last post by:
Is multi-targeting possible using Visual Studio Express? If not, do I have any other options to target a 1.1 framework using Visual Studio Express? Thanks for your help, Sundar
0
by: bharathreddy | last post by:
Vs 2008 is the MS latest IDE for developing Windows, Web, Smart Device Applications. It comes along with .NET Framework 3.5, C# 3.0, LINQ, ASP.NET AJAX and VSTO . Now with the power of VS 2008 we can...
4
by: peege0102 | last post by:
I'm trying to write a script so that every time a check box is clicked the entire tr in the table changes color. I wrote this one for targeting a paragraph so that every time its clicked it changes...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.