Menu

#44 Converting to VS2010 errors

0.9.10.0
open
nobody
General (25)
5
2012-03-20
2012-03-20
No

I was trying NPlot to see if we can use it, but upon loading it into VS2010 (after installing .NET 1.1 including SDK and MSBee), the build errors with these errors:

Warning 3 Use command line option '/keyfile' or appropriate project settings instead of 'AssemblyKeyFile' C:\Users\xxx\Documents\Visual Studio 2010\Projects\nplot-0.9.10.0\src\AssemblyInfo.cs 46 12 NPlot
Warning 1 The parent file, '..\src\Windows.PlotSurface2D.cs', for file 'resources\Windows.PlotSurface2D.resx' cannot be found in the project file. NPlot
Error 2 Cryptographic failure while signing assembly 'C:\Users\xxx\Documents\Visual Studio 2010\Projects\nplot-0.9.10.0\obj\Debug\NPlot.dll' -- 'Error reading key file 'NPlot-key.snk' -- The system cannot find the file specified. ' NPlot
Warning 4 'NPlot.Windows.PlotSurface2D.Padding' hides inherited member 'System.Windows.Forms.Control.Padding'. Use the new keyword if hiding was intended. C:\Users\xxx\Documents\Visual Studio 2010\Projects\nplot-0.9.10.0\src\Windows.PlotSurface2D.cs 447 14 NPlot

I am not sure how to fix any of these errors. :-/

Discussion

  • Dennis Hayes

    Dennis Hayes - 2012-03-20

    VS2010 does not support .net 1.1

     
  • Bernhard Ege

    Bernhard Ege - 2012-03-20

    I am not really interested in making VS2010 compatible with .NET 1.1. I would however like to try out NPlot in VS2010. If NPlot _requires_ .NET 1.1, then I guess VS2010 is out of the question. If not, how do I make NPlot compatible with VS2010?

     
  • Angel Marin

    Angel Marin - 2012-03-20

    It's complaining about the sign key (not included in the source distribution). You can either generate one with sn.exe or just remove the line that references NPlot-key.snk on AssemblyInfo.cs.

     
  • Jim Graham

    Jim Graham - 2012-03-20

    You can retarget NPlot to .NET 4 (this should have been an option when loading the solution file into VS2010). After that, do what anmar suggests to remove the .snk file from src/AssemblyInfo.cs

    IF you check out the source code from SVN, the other two errors don't arise.

    -Jim

     
  • Bernhard Ege

    Bernhard Ege - 2012-03-21

    I have done as suggested and I have managed to get rid of 3 of the 4 errors. I still have this one left:

    Warning 1 The parent file, '..\src\Windows.PlotSurface2D.cs', for file 'resources\Windows.PlotSurface2D.resx' cannot be found in the project file. NPlot

    The cs file does exists and is looked for in the right place (tried changing the csproj file to make it look somewhere else).

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.