SQLite.Interop.dll Das angegebene Modul wurde nicht gefunden - vb.net-2010

i am new in Visual Studio....
i try to creat a short app with a local SQLite db.
Project data:
Windows forms-App (.net Framework)
.NET Framework 4.8
AnyCPU
if i test my solution in visual studio, everything works fine.
if i now publish my program and install / run the programm i always get this error:
enter image description here
enter image description here
any ideas?
thanks

Related

Dotfuscator Error when integrating into VB winform Application

I am trying to integrate obfuscation into the build of a project. I am using Visual Studio 2019 CE 16.11.5 and the project is a VB winform Application targeting .net 4.6. Windows 10 Pro x64.
As soon as I add required lines into my project files and save. Visual studio unloads my project, showing the following message in output window:
error : The imported project "C:\Program Files (x86)\MSBuild\PreEmptive\Dotfuscator\6\PreEmptive.Dotfuscator.Common.targets" was not found. Confirm that the expression in the Import declaration "C:\Program Files (x86)/MSBuild/PreEmptive/Dotfuscator/6/PreEmptive.Dotfuscator.Common.targets" is correct, and that the file exists on disk.
I checked the folder in the error message and it is not there. I uninstalled and installed Dotfuscator still the required folder is not created.
I also have VS 2022 CE installed.
What am I missing?

Visual Studio 2022 | The Profile "..." cannot be executed by the Project

I'm german but i translated the error in english. So my Problem is that i wanted to use Visual Studio 2022 but when i run a program like a simple code i get this error and btw. I'm using C# and .Net 5.0 because .Net 6.0 seems pretty strange because there are no methods, classes and so on:
The Profile "..." cannot be executed by the Project
But then i downloaded Visual Studio 2019 and it worked perfectly?
I don't know what the Problem is. Can someone help me?
Please!
Fixed! I haven't installed .Net Desktopdeveloping! I dont know why but yeah
You need to select the console application with the subtitle:
"A project for creating a command-line application that can run on .NET Core on Windows, Linux and MacOS." Image showing which one you should select
(since you are using the german version: "Ein Projekt zum Erstellen einer Befehlszeilenanwendung, die mit .NET unter Windows, Linux und macOS ausgeführt werden kann.")
The other one will not run.

Brand new CLR Class Library project won't build: missing MSCOREE.lib

Using the latest Visual Studio 2019 version, a brand new project will not build:
fatal error LNK1104: cannot open file 'MSCOREE.lib'
I have tried to re-install Visual Studio but that didn't change anything unfortunately.
These components have been selected by the installer but apparently it's not enough:
MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.24)
Windows 10 SDK (10.0.18362.0)
C++/CLI support for v142 build tools (14.24)
Question:
Are there any tricks to get CLR Class Library (.NET Framework) projects to build ?
Here is the solution:
Apparently, no matter what framework version you will target, the $(NETFXKitsDir)Lib\um\x86 macro will always point to C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\lib\um\x86.
Now here's the problem, even though you install 4.7.2 SDK in Visual Studio Installer, this file is nowhere to be seen.
But if you download .NET Framework 4.7.2 Developer Pack Offline Installer and press the Repair button, it gets correctly installed and a brand new project will build succesfully.
Alternatively:
Re-installing VS also fixes the issue ...

LinqPad PopUp "Unable to invoke .Net Reflector ( is it installed ? )" Error Message

I installed the following software into my laptop:
Microsoft .NET Framework 4 (Standalone Installer)
Microsoft Windows SDK 7.1
ASP.NET MVC 3 RTM
Copy *.XML to C:\Program Files\Microsoft ASP.NET\ASP.NET MVC
3\Assemblies from another laptop which is full installed with Visual
Studio 2011 Express
Copy *.XML to C:\Program Files\Microsoft ASP.NET\ASP.NET Web
Pages\v1.0\Assemblies from another laptop which is full installed
with Visual Studio 2011 Express
SQL Server Compact 4.0
I wrote the following code:
void Main()
{
ActionResult
}
After pressing Shift + F1, I get the following LinqPad message:
Unable to invoke .Net Reflector ( is it installed ? )
How can I solve this problem without installing Visual Studio? I would appreciate step-by-step instructions. Thanks!
.Net Reflector isn't part of the .Net Framework, but a product which is sold by Redgate and you can read more at their website http://www.reflector.net.
So, I guess the step by step instructions would either be :
Don't press Shift-F1.
or
Buy it (or download the trail)
Install it.
Restart Linqpad.
Linqpad also has an option 'Export to Excel', but that only works if you have Excel installed and the same applies with .Net Reflector.

Annoying message when I start a debug session in the Windows CE 4.1 emulator

I have to maintain an old Compact Framework application written for Windows CE 4.1 in Visual Studio 2003 (sigh!). It's the German localized version of Visual Studio 2003.
Every time i start a debug session in the WinCE emulator, I get this message on the virtual device:
"Microsoft .NET CF 1.0 DE-String ist
bereits installiert. Möchten Sie
erneut installieren?"
which translated into English means:
"Microsoft .NET CF 1.0 DE-String is
already installed. Do you want to
re-install it?"
After clicking "OK" the app runs normally, but it is very annoying havong to click this every time I test the application. Is there a solution for this?
Thanks!
You want to turn off deploying the compact framework to the mobile device when deploying. This is an option that you can turn off in your project properties menu on the devices tab that will stop this from happening each time.