AppsFramework

Code Project Setup

Prerequisite: Install Visual studio community in machine.

Step 1:

Accept invitation from your mail to access the Azure DevOps using your credentials.

Connect to the TFS server in visual studio using that server link which will be given on your mail.

Step 2: Point 1: Open Solution -> Click on Team Explorer Window.

Point 2: Click on Tab -> Source Control Explorer.

Point 3: Click on Icon -> Home.

Point 4: Click on Icon -> Manage Connections.

Point 5: Click on Manage Connections -> Right click on Projects -> Connect.

Point 6: Create a folder where you want to map the projects.

e.g. :- In E:\vs

Point 7: Right click on rsds.visualstudio.com\rsds and click on Get Latest Version. Then all projects are mapped in the folder previously created.

Point 8: Now the Projects are ready to start.

Step 3:

First of all download Dot net framework 4.7.2 and Dot net core 2.2 before build the project and change it in the properties of project in visual studio if it doesn’t effect.

Dot net framework 4.7.2:

https://dotnet.microsoft.com/download/dotnet-framework/net472

Dot net core 2.2:

https://dotnet.microsoft.com/download/dotnet-core/2.2

https://dotnet.microsoft.com/download/dotnet-framework/net472

Dot net framework 4.7.2:

Dot net core 2.2:

https://dotnet.microsoft.com/download/dotnet-core/2.2

Step 4:

First open “rs.service.sln from auth folder” project, restore all NuGet packages, get latest version than rebuild, if you are facing references issue than open the project file in notepad.

please see below screenshot:

Step 5: Install SQL server in machine.

Step 6: After map project look these screen

Step 8: Open “rs.web.projects.sln” get latest version then rebuild.

Step 9: Now get these screen

Step 10: Check host file. You can get the hosts file from this location.

c:\Windows\System32\Drivers\etc\hosts.

Step 11: Before run projects set project properties.

Step 12: Now debug project then getting these screen.

Step 13: Now change url “dev.test” instead of “localhost” then get these screen.

Step 14? Click on Start Now then open login page.

Some Important configurations for project execution
  1. applicationhost.config

Open this file from execution location of the project

E.g. Path: ~ Projects\Talent.vs\config Remove the localhost text from bindinginformation for that site which you want to Run from the project’s list in solution explorer.

Service Bus Configuration:

**(String values are based on the Environment)

1) For example, In Application GSTNirvana? App data?Connectionstring.config

Web Server Screen Shot:

Connection string will be:

**(String values are based on the Environment)

<connectionStrings> </connectionStrings>

**Below screenshot of Azure to get the Service Bus Connection String:

Same as above application, below are the apps which required the Service Bus Configuration as per the environment.

  1. Service bus In AdminPortal --> App data--> Connectionstring.config

  2. Service bus In Agent --> App data--> Connectionstring.config

  3. Service bus In Hosted Agent--> app.config

<connectionStrings>
    <add name="ServiceBus" connectionString="Endpoint=sb://its-mum-msg.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=55Du3F1hjuyrFujf25ayOU57UC3Vo84r1QBAlOd/GJ4=" />
    </connectionStrings>

  1. Service bus In Hosted Agent --> GSTNirvana.Agent.Hosted.exe.config
<connectionStrings>
    <add name="ServiceBus" connectionString="Endpoint=sb://its-mum-msg.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=55Du3F1hjuyrFujf25ayOU57UC3Vo84r1QBAlOd/GJ4=" />
</connectionStrings>

  1. Service bus In Hosted Agent --> appsettings.json
{
  "ConnectionStrings": {
    "ServiceBus": "Endpoint=sb://its-mum-msg.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=55Du3F1hjuyrFujf25ayOU57UC3Vo84r1QBAlOd/GJ4="
  },

=======The End(Service Bus Entry)

\(Storage Account Configurations\)

**(String values are based on The Environment)

Storage Account Change in Application:

For example Storage Account name : itsmumstrg001

  1. In RegPortal--> App data--> Connection String

The Connection String will be:

<connectionStrings>
<add name="Storage" connectionString="DefaultEndpointsProtocol=https;AccountName=itsmumstrg001;AccountKey=WA9I+RXdySGx3g05hUs6pibqJNu9Z7dH6AXlLR5Yrfb7rSQLj8Vp8Lb17u8Iwg5NqbynkET9LR6CD/KIe3to+Q== " />
</connectionStrings>

  1. For Storage account --In Database --> AuthDB2?”Account Table”

**Change the Storage account value in “Storage account column”

=The End (Storage Account)=