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
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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