Skip to content

srivastavarahull/aps-simple-viewer-dotnet

 
 

Repository files navigation

Simple Viewer (.NET)

platforms .net license

Autodesk Platform Services application built by following the Simple Viewer tutorial from https://tutorials.autodesk.io.

thumbnail

Development

Prerequisites

We recommend using Visual Studio Code which, among other benefits, provides an integrated terminal as well.

Setup & Run

  • Clone this repository: git clone https://github.com/autodesk-platform-services/aps-simple-viewer-dotnet
  • Go to the project folder: cd aps-simple-viewer-dotnet
  • Install .NET dependencies: dotnet restore
  • Open the project folder in a code editor of your choice
  • Create an appsettings.Development.json file in the project folder (if it does not exist already), and populate it with the JSON snippet below, replacing <client-id> and <client-secret> with your APS Client ID and Client Secret:
{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "APS_CLIENT_ID": "<client-id>",
  "APS_CLIENT_SECRET": "<client-secret>"
}
  • Run the application, either from your code editor, or by running dotnet run in terminal
  • Open http://localhost:8080

When using Visual Studio Code, you can run & debug the application by pressing F5.

Troubleshooting

Invalid active developer path

If you're getting invalid active developer path errors, please follow the steps explained in https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a.

Dev-certs errors

If you're seeing errors related to dev-certs, try cleaning any existing certificates as explained in https://docs.microsoft.com/en-us/dotnet/core/additional-tools/self-signed-certificates-guide, and on macOS and Windows systems, do not forget to use the --trust switch.

If you have any other question, please contact us via https://forge.autodesk.com/en/support/get-help.

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for more details.

About

Simple Viewer (.NET):Basic application built by following the Simple Viewer tutorial from https://aps.autodesk.com/tutorials.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 59.4%
  • JavaScript 30.2%
  • HTML 6.1%
  • CSS 4.3%