472,357 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Why does a service pack that targets VS2008 and .NET 3.5 is cause a compilation error in a VS2005 build that targets .NET 3.0?

Hi,

After installing SP1 for VS2008 and SP1 for .NET 3.5 we get the following
warning in a VS2005 build:

error CS0618: Warning as Error: 'System.Windows.UIElement.BitmapEffect' is
obsolete: 'Avoid using BitmapEffects as they have very poor performance
characteristics. They will be deprecated in a future version. Consider
using the UIElement.Effect property and ShaderEffects where appropriate
instead.'

We do not get this error with VS2008 and .NET installed without SP1.

Why does a service pack that targets VS2008 and .NET 3.5 is cause a
compilation warning in a VS2005 build that targets .NET 3.0?
Nov 5 '08 #1
4 1922
.. wrote:
After installing SP1 for VS2008 and SP1 for .NET 3.5 we get the following
warning in a VS2005 build:

error CS0618: Warning as Error: 'System.Windows.UIElement.BitmapEffect' is
obsolete: 'Avoid using BitmapEffects as they have very poor performance
characteristics. They will be deprecated in a future version. Consider
using the UIElement.Effect property and ShaderEffects where appropriate
instead.'

We do not get this error with VS2008 and .NET installed without SP1.

Why does a service pack that targets VS2008 and .NET 3.5 is cause a
compilation warning in a VS2005 build that targets .NET 3.0?
Because the .NET 2.0, 3.0 and 3.5 framework all share the 2.0 runtime and
the 2.0 framework library. The VS2008 service pack only targets VS, but .NET
3.5 SP1 (which has to be installed with it) upgrades the common 2.0 runtime
to 2.0 SP2. The ObsoleteAttribute is part of the class' metadata and will
affect compilers regardless of their version or target settings.

This shared base is how VS2008 can easily target different versions in the
first place (and also why you can actually write .NET 3.0 and 3.5
applications using VS2005, as long as you only use the new classes and not
the new language features).

As to the actual problem, you have two obvious solutions: either take the
deprecation warning to heart and rewrite your code (obviously the best
solution, but it may not be feasible) or exclude the warning for now. You
can selectively disable warnings at specific locations in your code by using
"#pragma warning" (excluding all obsolescence warnings globally is another
option, but is obviously risky if other classes are obsoleted after you do
this).

--
J.
Nov 5 '08 #2
Thanks Jeroen - It seems that in this case the PresentationCore assembly was
modified.

"Jeroen Mostert" <jm******@xs4all.nlwrote in message
news:49*********************@news.xs4all.nl...
>. wrote:
>After installing SP1 for VS2008 and SP1 for .NET 3.5 we get the following
warning in a VS2005 build:

error CS0618: Warning as Error: 'System.Windows.UIElement.BitmapEffect'
is obsolete: 'Avoid using BitmapEffects as they have very poor
performance characteristics. They will be deprecated in a future
version. Consider using the UIElement.Effect property and ShaderEffects
where appropriate instead.'

We do not get this error with VS2008 and .NET installed without SP1.

Why does a service pack that targets VS2008 and .NET 3.5 is cause a
compilation warning in a VS2005 build that targets .NET 3.0?
Because the .NET 2.0, 3.0 and 3.5 framework all share the 2.0 runtime and
the 2.0 framework library. The VS2008 service pack only targets VS, but
.NET 3.5 SP1 (which has to be installed with it) upgrades the common 2.0
runtime to 2.0 SP2. The ObsoleteAttribute is part of the class' metadata
and will affect compilers regardless of their version or target settings.

This shared base is how VS2008 can easily target different versions in the
first place (and also why you can actually write .NET 3.0 and 3.5
applications using VS2005, as long as you only use the new classes and not
the new language features).

As to the actual problem, you have two obvious solutions: either take the
deprecation warning to heart and rewrite your code (obviously the best
solution, but it may not be feasible) or exclude the warning for now. You
can selectively disable warnings at specific locations in your code by
using "#pragma warning" (excluding all obsolescence warnings globally is
another option, but is obviously risky if other classes are obsoleted
after you do this).

--
J.

Nov 5 '08 #3
More is heading ot the core. You can potentially see more of this. it is
also the reason .NET 4.0 will be a new framework rather than a bolt on (like
3.x).

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
<.wrote in message news:ec*************@TK2MSFTNGP06.phx.gbl...
Hi,

After installing SP1 for VS2008 and SP1 for .NET 3.5 we get the following
warning in a VS2005 build:

error CS0618: Warning as Error: 'System.Windows.UIElement.BitmapEffect' is
obsolete: 'Avoid using BitmapEffects as they have very poor performance
characteristics. They will be deprecated in a future version. Consider
using the UIElement.Effect property and ShaderEffects where appropriate
instead.'

We do not get this error with VS2008 and .NET installed without SP1.

Why does a service pack that targets VS2008 and .NET 3.5 is cause a
compilation warning in a VS2005 build that targets .NET 3.0?
Nov 6 '08 #4
Thanks for the heads up Cowboy. I'll pass it along to the watchers.

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:OF**************@TK2MSFTNGP03.phx.gbl...
More is heading ot the core. You can potentially see more of this. it is
also the reason .NET 4.0 will be a new framework rather than a bolt on
(like 3.x).

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
<.wrote in message news:ec*************@TK2MSFTNGP06.phx.gbl...
>Hi,

After installing SP1 for VS2008 and SP1 for .NET 3.5 we get the following
warning in a VS2005 build:

error CS0618: Warning as Error: 'System.Windows.UIElement.BitmapEffect'
is obsolete: 'Avoid using BitmapEffects as they have very poor
performance characteristics. They will be deprecated in a future
version. Consider using the UIElement.Effect property and ShaderEffects
where appropriate instead.'

We do not get this error with VS2008 and .NET installed without SP1.

Why does a service pack that targets VS2008 and .NET 3.5 is cause a
compilation warning in a VS2005 build that targets .NET 3.0?

Nov 6 '08 #5

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

Similar topics

0
by: Peter D. Dunlap | last post by:
I have a number of web sites on my 2003 server, each of the independent sites (i.e., not subdirectories of the localhost site). The way I have always set these up in the past is: 1. Create a...
4
by: Frank Rizzo | last post by:
I am not able to grok, how after so many betas, CTPs, community editions, flawless demos at MSDN shows, ms employees salivating at their mouth over its goodness, etc... VS2005 can suck so hard. Is...
15
by: Joseph Geretz | last post by:
OK, I'll admit it up front - I just don't get it. Here's our previous VS2003 development model. Developers develop the WS solution on their own workstations, using their own IIS web servers...
1
by: Mark Fitzpatrick | last post by:
I haven't seen anyone mention it here yet so I thought it would be worth noting that MS has apparently released VS 2005 Service Pack 1. It's available at:...
1
by: Hans Kesting | last post by:
Hi, I can't get a vs2008 solution to compile. I have copied the source from a (compiling) 2.0 web-application to a new directory (I didn't want to change the old code), and tried to compile...
2
by: =?Utf-8?B?Umljaw==?= | last post by:
I am trying to set up a WCF service using VS2005 on Vista using IIS 7.0. I created a website, selecting a WCF Service template and http://localhost/ServiceName. Even the most simple project when...
4
by: K Viltersten | last post by:
We have a project working well today and it's developed on VS2005. Since we're planing to switch to VS2008 in a soon future, i've been trying to move the project to VS2008 Express (Web...
1
by: =?Utf-8?B?a21ybmVlZHNuZXRoZWxw?= | last post by:
Hi. This is my scenario that I hope I can find a solution for: A VS2005 solution containing a web app project, a web service project and a simple client library project that only consumes the web...
0
by: leoiser | last post by:
Hi all, I converted one web application(Vb.Net) created in VS2005 Framework 2.0 to VS2008 framework 3.5. (This application is using Reportviewer8.0) After convertion I cant build the...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.