including sqlite in make file and building using nmake VS Code
up vote
0
down vote
favorite
I have a WinForm App created in Visual Studio 2017 and C#. My application uses a SQLite database for which I have installed the correct packages using NUGET.
Packages installed
- Entity Framework
- System.Data.SQLite
- System.Dat.SQLite.Core
- System.Data.SQLite.EF6
- System.Data.SQLite.Linq
However when I try to make my project using nmake, I get the following error.
sql_crud.cs(2,19): error CS0234: The type or namespace name 'SQLite' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
sql_crud.cs(12,9): error CS0246: The type or namespace name 'SQLiteCommand' could not be found (are you missing a using directive or an assembly reference?)
NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0binRoslyncsc.EXE"' : return code '0x1'
Stop.
When I run the code from 'Start' debug from inside visual studio code it works fine since it can import System.Data.SQLite
My question is how can I use nmake to make the sqlite files for my applicaiton? How would I edit the make file to make those changes?
I have tried adding the dll files to the build, but nmake expects a text file.
Here is my make file
FIRMWARE = f.l2
RSOURCES = sql_crud.cs main.cs
all : r.exe
r.exe : $(RSOURCES) $(FIRMWARE)
csc /target:winexe /resource:$(FIRMWARE) /O $(RSOURCES)
clean :
-rm -f r.exe
c# visual-studio sqlite nmake
add a comment |
up vote
0
down vote
favorite
I have a WinForm App created in Visual Studio 2017 and C#. My application uses a SQLite database for which I have installed the correct packages using NUGET.
Packages installed
- Entity Framework
- System.Data.SQLite
- System.Dat.SQLite.Core
- System.Data.SQLite.EF6
- System.Data.SQLite.Linq
However when I try to make my project using nmake, I get the following error.
sql_crud.cs(2,19): error CS0234: The type or namespace name 'SQLite' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
sql_crud.cs(12,9): error CS0246: The type or namespace name 'SQLiteCommand' could not be found (are you missing a using directive or an assembly reference?)
NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0binRoslyncsc.EXE"' : return code '0x1'
Stop.
When I run the code from 'Start' debug from inside visual studio code it works fine since it can import System.Data.SQLite
My question is how can I use nmake to make the sqlite files for my applicaiton? How would I edit the make file to make those changes?
I have tried adding the dll files to the build, but nmake expects a text file.
Here is my make file
FIRMWARE = f.l2
RSOURCES = sql_crud.cs main.cs
all : r.exe
r.exe : $(RSOURCES) $(FIRMWARE)
csc /target:winexe /resource:$(FIRMWARE) /O $(RSOURCES)
clean :
-rm -f r.exe
c# visual-studio sqlite nmake
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a WinForm App created in Visual Studio 2017 and C#. My application uses a SQLite database for which I have installed the correct packages using NUGET.
Packages installed
- Entity Framework
- System.Data.SQLite
- System.Dat.SQLite.Core
- System.Data.SQLite.EF6
- System.Data.SQLite.Linq
However when I try to make my project using nmake, I get the following error.
sql_crud.cs(2,19): error CS0234: The type or namespace name 'SQLite' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
sql_crud.cs(12,9): error CS0246: The type or namespace name 'SQLiteCommand' could not be found (are you missing a using directive or an assembly reference?)
NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0binRoslyncsc.EXE"' : return code '0x1'
Stop.
When I run the code from 'Start' debug from inside visual studio code it works fine since it can import System.Data.SQLite
My question is how can I use nmake to make the sqlite files for my applicaiton? How would I edit the make file to make those changes?
I have tried adding the dll files to the build, but nmake expects a text file.
Here is my make file
FIRMWARE = f.l2
RSOURCES = sql_crud.cs main.cs
all : r.exe
r.exe : $(RSOURCES) $(FIRMWARE)
csc /target:winexe /resource:$(FIRMWARE) /O $(RSOURCES)
clean :
-rm -f r.exe
c# visual-studio sqlite nmake
I have a WinForm App created in Visual Studio 2017 and C#. My application uses a SQLite database for which I have installed the correct packages using NUGET.
Packages installed
- Entity Framework
- System.Data.SQLite
- System.Dat.SQLite.Core
- System.Data.SQLite.EF6
- System.Data.SQLite.Linq
However when I try to make my project using nmake, I get the following error.
sql_crud.cs(2,19): error CS0234: The type or namespace name 'SQLite' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
sql_crud.cs(12,9): error CS0246: The type or namespace name 'SQLiteCommand' could not be found (are you missing a using directive or an assembly reference?)
NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0binRoslyncsc.EXE"' : return code '0x1'
Stop.
When I run the code from 'Start' debug from inside visual studio code it works fine since it can import System.Data.SQLite
My question is how can I use nmake to make the sqlite files for my applicaiton? How would I edit the make file to make those changes?
I have tried adding the dll files to the build, but nmake expects a text file.
Here is my make file
FIRMWARE = f.l2
RSOURCES = sql_crud.cs main.cs
all : r.exe
r.exe : $(RSOURCES) $(FIRMWARE)
csc /target:winexe /resource:$(FIRMWARE) /O $(RSOURCES)
clean :
-rm -f r.exe
c# visual-studio sqlite nmake
c# visual-studio sqlite nmake
asked Nov 10 at 23:36
ex080
6012
6012
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244483%2fincluding-sqlite-in-make-file-and-building-using-nmake-vs-code%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown