Skip to content

** How to fix Issues which prevent build ** #30

Description

@abutir
  • use Visual Studio not rider to make your life alittle bit easier

  • old version , open with visual studio , it will prompt you to install the version of the project on runtime ( you might need to restart device )
    dotnet --list-runtimes command will help you to see if it was added

  • missing SCROMCourses folder issue
    to fix this just add SCROMCourses folder to the project OpenSourceSCROMLMS

  • redirect issue to localhost/undifined .

to solve the issue to redirect to the uploaded course do the following :

  • open DatabaseHelper.cs -> go to InsertScromCourse function and add return SCORM_course.id and return the type int

  • open UploadFile.cshtml.cs -> go to line 86 and add var id = , then in the return json url : "/Package?id=" + id

  • open UploadFile.cshtml -> go to the js code and replace the window.location.href with :

             const baseUrl = window.location.origin;
              const fullUrl = baseUrl + response.Url; 
              window.location.href = fullUrl;`
    

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions