From: Jamie M. <jam...@go...> - 2010-06-29 20:13:56
|
NPlot was compiled against .Net 2.0 in order to use .Net 2.0 components in .Net 4.0 applications you need to add an entry to the applications config file. Here is a link to what you need to do: http://stackoverflow.com/questions/1604663/what-does-uselegacyv2runtimeactivationpolicy-do-in-the-net-4-config Jamie On Tue, Jun 29, 2010 at 4:04 PM, SourceForge.net <no...@so...> wrote: > Bugs item #3022446, was opened at 2010-06-28 18:22 > Message generated for change (Comment added) made by jallwork > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=821568&aid=3022446&group_id=161868 > > Please note that this message will contain a full copy of the comment thread, > including the initial issue submission, for this request, > not just the latest update. > Category: None > Group: None > Status: Open > Resolution: None > Priority: 5 > Private: No > Submitted By: John Allwork (jallwork) > Assigned to: Nobody/Anonymous (nobody) > Summary: VS2010 removes reference to Nplot, then errors: > > Initial Comment: > VS2010 removes reference to Nplot, then errors: > 1. the namespace name Nplot could not be found > 2. The referenced assembly 'Nplot' could not be resolved because it has a dependency on 'System.Design > Version 4.0.0.0, ... ' which is not in the current targeted framework .NETFramework 4.0, ... > > To reproduce this > 1. start a new (c#) project > 2. Add a Plotsurface to the toolbox (not really necessary) > 3. add reference to NPlot in solution explorer (right-click, browse for Nplot dll) > 4. add 'using NPlot;' at top of code > 5. start typing some npolt code (say after InitializeComponent();): PlotSurface2D ps2d = new PlotSurface2D(); > 6. Note that intellisense knows about the Nplot items > 7. Compile code and get error. > 8.Look at code - PlotSurface2D ps2d = new PlotSurface2D(); is now an error. > > Further > double click Nplot in Solution Explorer to display Object Browser. Nplot is missing. > Remove Nplot from references and add again. Nplot appears in Object Browser. > Compile program and Hey Presto! Nplot is gone. > > Should there be a different nplot.dll for VS2010? > How do I target VS2010 for a different .NET framework? > > Regards and thanks > > John Allwork > > ---------------------------------------------------------------------- > >>Comment By: John Allwork (jallwork) > Date: 2010-06-29 21:04 > > Message: > Update on this. > You can retarget VS to .NET 3.5, (right-click Properties > Open, and > retarget framework) and it complies, but doesn't display anything on the > plotsurface > John > > ---------------------------------------------------------------------- > > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=821568&aid=3022446&group_id=161868 > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nplot-devel mailing list > Npl...@li... > https://lists.sourceforge.net/lists/listinfo/nplot-devel > |