0

Reference to my previous question: Can't compile the project. Missing so many files

I am very new to .NET core version. So I have so a few questions need someone to guide me to a quick start.

  1. There are 2 templates version for ASP.NET core 2.0; .NET core and .NET full. Does it mean if I choose the .NET full version, I still can use 3rd party DLL such as iTextSharp or EPPlus version, doesn't it? 'Cause I have read that with .NET core, all 3rd party DLL without .NET core support could not be used in the project.

  2. From the download template, it contains 2 main projects, one is .NET core service and another is angular UI view. Currently, it set to localhost for all API calls. Because I run the window server in my VM and run the client on my host so I need to set the client to look for the service on my VM via IP address. Which file do I need to config?

  3. Related to Q2, how to config the .NET service to run in production mode and install into IIS server?

Thx in advance for all comments and suggestions.

Vivek Nuna
  • 25,472
  • 25
  • 109
  • 197
Vin
  • 63
  • 1
  • 4

2 Answers2

3

Answer to the second question;

There's a config file in src/assets/appconfig.json
You can change those values...

  • remoteServiceBaseUrl: Used to configure base address of the server side APIs. Default value: http://localhost:22742
  • appBaseUrl: Used to configure base address of the client application. Default value: http://localhost:4200

appBaseUrl is configured since we use it to define format of our URL. If we want to use tenancy name as subdomain for a multi-tenant application then we can define appBaseUrl as


Aspnet Zero Angular Getting Started


PS: Apart from the framework configuration; be aware that connecting something in VM is another discussion. You need to set some settings like Bridged Networking... You can figure it out in the related VM's board.

Alper Ebicoglu
  • 8,884
  • 1
  • 49
  • 55
  • Now i can config the server endpoint from angular view. But it seems that now the server service just listening to only localhost connection. I try to change from localhost to server ip address at src/xxx.web.host/appsetting.json or follow https://stackoverflow.com/questions/14725455/connecting-to-visual-studio-debugging-iis-express-server-over-the-lan still no luck. any suggest ? – Vin Feb 08 '18 at 12:27
  • it's normal. server needs to listen always itself (localhost). how do you think a server can retrieve requests from another server? – Alper Ebicoglu Feb 08 '18 at 13:22
  • sorry could you tell where this appconfig.json lies for mvc dotnetcore ? – Rohit Kumar Jul 14 '19 at 05:03
1
  • For point 1 you can refer this post.
  • For Point 2: You can host your service application on Azure or IIS so that you can consume your service from other PC.
  • For Point 3, Its pretty well explained here.

Additional: If you want to deploy Angular application, you can refer Deployment of Angular Application

You can also refer src/assets/appconfig.json for required configurations.

Vivek Nuna
  • 25,472
  • 25
  • 109
  • 197
  • Thx for a quick reply. But for point 2, my question is how/where to config the service end point. I will look into both refer later on. – Vin Feb 08 '18 at 07:51