Importing Graphviz library to C# Visual Studio 2008 - c#

I have to switch my application from Windows XP to Windows 7 operating system. The old WinXp app uses WinGraphviz library by AT&T that's now obsolete. So I am trying to import the new Graphviz library to my C# project.
Visual Studio 2008 requires all references to be COM object or valid assembly. Unfortunately the Graphiviz package I've downloaded from official website doesn't include such files. DLL only is included.
Add reference DLL returns with the aforementioned error.
Add project folder does not work.
Someone suggest to build my own Interupt file but I have no idea.
Any suggestion?
Thanks

Maybe this one will help: Graphviz4Net

Related

Visual c++ libraries

I'm currently working in VS2017 on a solution with multiple C# and C++ projects.
The installer project has the C++ redistributable as a prerequisite, with the option to download it from the component vendor's site.
Some of the clients want to be able to install the application without an internet connection.
The normal thing would be to put the package in the bootstraper and check the download from the same location as my application; the problem is every time Microsoft updates something with this library, compiling the application would work, but installation will have the old redistributable.
Is there any check to include Visual Studio libraries that are used when building the application, which ever version these may be?

Getting error while loading Sqlite dll in Window 10 mahcine [duplicate]

I have a perfectly working windows forms C# .NET 4 application that uses a SQLite3 database file to store data and display forms.
When I deploy my app on any machine other then the dev machine, I get an exception thrown and it's message is "Could not load assembly System.Data.SQLite.dll or one of its dependencies. The specified module could not be found."
The System.Data.SQLite.dll reference in the project is set to Copy Local = True. Also, I tried manually loading the assembly with Assembly.LoadFile. The dll is placed in the output directory. I also tried setting the platform target to Any CPU as well as x86, no difference. All machines I am working with are 32-bit. What is the issue here? Why is my application trying to load the assembly and can't find it?
Thanks!
I had the same problem after publishing my program to a separate computer. Installing Microsoft Visual C++ 2010 Redistributable Package (x86) on the separate computer fixed the problem.
Note: the separate computer already had Microsoft Visual C++ 2010 Redistributable Package (x64) installed, the x86 version was needed.
'System.Data.SQLite.dll" requires "msvcr100.dll" which is one of it's Dependencies. This will be available only if you installed latest "Microsoft Visual C++ Redistributable" or any other product which internally provides this.
For example, VS2010 will install C++ Redistributable by default. Thats the reason your application doesnot works in some machine but works in others.
You could try pasting the "msvcr100.dll" in your application bin folder and distribute if you dont want to install VC++ 2010 Redist in all the PC's.
Some of the System.Data.Sqlite.dll modules depend on the "Microsoft Visual C++ 2012 Redistributable Package" .
You can find required dependencies on the official download page : http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki
The answers already given didn't solve my problem. I tried to deploy to a VMware server. The solution that did help where given here: http://sqlite.1065341.n5.nabble.com/System-Data-SQLite-Deployment-Mystery-td71752.html Two methods are described there.
When i install this sqlite-netFx45-setup-bundle-x86-2012-1.0.88.0.exe, my app is able to find the right dll.
The second method is to add the dll to de app.exe.config in the debug or release dir. If you edit this file directly, there is a change VC will overwrite the file.
My main problem was that i installed the sqlite package manually. I didn't use NuGet, because i'm behind a proxy. If you do use Nuget, the information in the app.exe.config will be provided automatically.
Using NuGet behind a proxy is described here: NuGet Behind Proxy

Deploying visual studio 2012 c# windows application

i created a windows application that uses system.xml and system.io libraries, it reads and writes into a specific file (in same directory).
after i am done, i run the .exe file and its perfectly fine BUT when i tried it on any other computer, it gives an error and doesn't work(doesn't even open).
i think that i should attach some library files such as the xml library ?
I tried publishing as installation file and it also doesn't work
i don't know and don't know how to do that, please help.
System.XML and System.IO are part of the .NET Framework. Check which .NET Framework version your solution is compiled for (in the project settings in Visual Studio). Default for Visual Studio 2015 is the .NET Framework 4.5.2, which is not installed by default on Windows 7! You need to install it for your application to work, but you don't need to copy any DLLs manually.
You can find the official download here
https://www.microsoft.com/en-us/download/details.aspx?id=42642

VS 2013 c# sqlite build fails App Certification Kit high risk from msvcr100.dll

I get a failure from the App certifictaion kit testing my app, which is developed for the WinRT (ARM) Platform.
I use the SQLite for WindowsRT lib and therefor the Microsoft Visual C++ 2013 Runtime Package.
The Cert Kit sauy that
msvcr100.dll has a high risk for the user
and I have to set the following Linker options
SAFESHEH, DYNIMCBASE; NXCOMPAT and APPCONTAINER
It has something to do with the msvcr100.dll
However after 1h of googleing I was not able to find how to set this flags in Visual Studio 2013 c# Windows App project.
Anybody could guide me through this, it is really driving me n** :-D
Thanks in advance.
*EDIT SOLUTION *
http://www.lyalin.com/2013/07/09/sqlite-for-windows-runtime-for-windows-8-1-apps/
This did the trick. Removed the lib from my nuget manager and downloaded it directly from the sqlite site did the trick. Now it is working with a new c++ lib
Thanks guys
As said in this blog the trick is to update to a beta release of sqlite.
Therefore I had to remove the lib from my nuget manager and downloaded it directly from the sqlite site.
This version is requiring a new c++ runtime version and this version passes the certification kit.
DO NOT USE SQLITE FROM NUGET PACKAGE MANAGER!

How to export all the dependent DLL files automatically

I used C# to write a program in .NET Framework 3.5.
But when I finished that and moved it to another computer on which .NET Framework 3.5 was installed, the program couldn't be started. It missed some dependent DLL files.
But when I moved this program to a computer that had Visual Studio 2008 installed, it ran perfectly.
So what can I do to export all the dependent DLL files automatically? So my program can run on a computer without installing Visual Studio 2008?
Actually you just need to include the third party component that your project use.
Edit:
To know them you need go to references and check the Added DLL.
Edit2:
Did you try to make a setup for your project it will automatically collect all the library used in your applications?
another point is, are you using win32 libraries, if yes also you should include them?

Categories

Resources