transform web.config when publishing asp.net core webapi project in visual studio 2017 - visual-studio-2017

I have app.config and app.Release.config. The transformation is working whe build the project from Visual Studio 2017 however no modification when hitting Publish to deploy the projectio to IIS
The app.config on publish folder has no transform data but the transformed value is on the web api.
Any idea where this tranformed value is stored?

Related

VisualStudio2019 WebAPI Run from Postman

I am trying to run the webAPI (C#) in Visual Studio 2019 and test in Postman. These are steps I took
Created a new project with type WebAPI in Visual Studio 2019 (selected C#) with example controller (WeatherApp)
Ran the application in Visual Studio 2019. It opens the browser and brings up the url as
http://localhost:62002/weatherforecast
the application then immediately shutsdown
I have postman window open, where I would like to test the api, but I am unable to.
I am trying to setup the environment, so that I can create my new webapi with get/post requests and run from postman, while debugging from visual studio 2019
Am I doing something wrong here ?
I found that I need to run dotnet run from terminal/shell with url https://localhost:5001 and then go to Postman and invoke the service uri. It worked. But not sure how to debug in this mode

Missing web template under visual C# in newly installed Visual Studio 2017

I'm specifically looking for asp.net MVC 4/5 template under Visual C#. Already installed .NET framework component but still not seeing the web template as I see before in my VS 2013. Please help.
In Visual Studio Installer - Workloads tab, under Web & Cloud, select ASP.NET and web development. You can now add the usual ASP.NET Web Application (.NET Framework).
image

Testing ASP.NET Core app using Protractor in Visual Studio 2017

I've got a asp.net core application which uses angular4 as client frontend and asp.net core for the service api. I've had end-to-end unit-testing up and running while using Visual Studio 2015.
Since I switched to Visual Studio 2017 I can't get the tests to use protractor anymore.
First problem: For protractor I need the full .net framework, for hosting my app I want to use .NetCoreApp 1.1. And Visual Studio 2017 does only support using one Framework. There are tricks by editing the proj-file, but even then I could not even compile my test project to use protractor.
So: Has anyone been able to run unit Tests using protractor in Visual Studio 2017? Any pointers about it, maybe you can point me to a website containing a sample?

How can I make Visual Studio automatically attach its debugger to both a web application and web service?

I'm working on a Visual Studio project. I'm using Visual Studio 2010. The project has an ASP.NET application project and a separate ASMX web service project. The web application project is set as the start-up project.
When I tell Visual Studio to start debugging, it correctly starts both the web application and web service. However, it only attaches the debugger to the web application and not the web service. This problem seems to occur regardless of which web server I use for either project (IIS, IIS Express, Visual Studio Development Web Server).
In order to debug both simultaneously, I need to manually attach the debugger to the web service during the debugging session.
How can I make Visual Studio automatically attach to both projects when I tell it start debugging?
I found that this works if I set both the web service and application to start-up projects. Do this by right-clicking the solution file and choosing something like Set Start-up Projects....
One of the options is to open two instances of Visual Studio and debug the projects separately, however it is pretty much the same inconvenience as attaching the debugger manualy.
By the way, do you have ASP.NET debugger allowed in both projects (project properties > web tab > debuggers section)?

How can I create a .NET 4.0 web service project in Visual Studio 2010 Pro?

The Web Services template isn't in the .NET 4.0 projects list--only .NET 3.5, but my service needs to depend on a .NET 4.0 assembly with my model/database functions. That assembly depends on 4.0, because of the data provider required (dotConnect for MySQL)
The web service will need a reference to this business logic assembly so it can pass its arguments to said assembly and blindly return. But, can I run the web services project in a .NET 4.0 application pool without any problems with the data provider?
I have Visual Studio 2010 Professional, not Ultimate (which I've read has the template)--is there any way around this?
In 4.0 you have the WCF framework. Try this one.
See this related article: Asp.Net Web Service Application missing in Visual Studio 2010