简体   繁体   中英

Run Odata Web Service

I've put a Odata API together, using Entity Framework. It has 3 Projects, API itself, Model and Persistence. I know how to run it through VS (2015). My startup project is API, wich requires the other two. I've found how to build those three projects into one folder .

Now here's the question:

How can I run the Program? There are a bunch of .dll and .xml Files in the build folder, but no .exe. I suppose I'll have to run it through a Webserver, but how?

I've found how to build those three projects into one folder.

You don't need to. Compiling a .NET application will put all required and referenced assemblies in the startup program's bin folder.

How can I run the Program?

Hit F5. This will start the Api project's configured web server, either the ASP.NET Development Server or IIS Express (or custom web server).

If you want to deploy the application, publish the Api application to a web server, for example to IIS. See ASP.NET Web Deployment using Visual Studio: Deploying to Test .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM