.NET 2.2 => NET 5.0 – Endpoint Routing does not support ‘IApplicationBuilder.UseMvc(…)

0 Comments

  Solution   Use “endpoint” routing Old app.ConfigureExceptionHandler(loggerFactory); app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseSpaStaticFiles(); app.UseAuthentication(); app.UseCors(“CorsPolicy”); app.UseMvc(routes => { routes.MapRoute( name: “default”, template: “{controller}/{action=Index}/{id?}”); });   New   app.ConfigureExceptionHandler(loggerFactory); app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseSpaStaticFiles(); app.UseRouting(); app.UseCors(“CorsPolicy”); app.UseAuthentication(); app.UseEndpoints(endpoints => {

.NET 2.2 => NET 5 – Fix – The call is ambiguous between the following methods or properties: ‘ServiceCollectionExtensions.AddAutoMapper(IServiceCollection, params Assembly[])’ and ‘ServiceCollectionExtensions.AddAutoMapper(IServiceCollection, params Type[])’

0 Comments

  To fix this error I followed: https://www.thecodebuzz.com/configure-automapper-asp-net-core-profile-map-object/   services.AddAutoMapper(typeof(Startup).Assembly);

NET 5 – Fix – ‘IConfigurationSection’ does not contain a definition for ‘Get’ and no accessible extension method ‘Get’ accepting a first argument of type ‘IConfigurationSection’ could be found (are you missing a using directive or an assembly reference?)

0 Comments

  ‘IConfigurationSection’ does not contain a definition for ‘Get’ and no accessible extension method ‘Get’ accepting a first argument of type ‘IConfigurationSection’ could be found (are you missing a using directive or an assembly reference?)

Node-sass – fix – gyp verb check python checking for Python executable “python2” in the PATH

0 Comments

  node-sass – gyp verb check python checking for Python executable “python2” in the PATH   Fix: https://stackoverflow.com/questions/45801457/node-js-python-not-found-exception-due-to-node-sass-and-node-gyp delete node_modulesfolder running npm install –global windows-build-tools reinstalling node modules or node-sass with npm install    

NVM not using correct node version – nvm use not working on Windows 10

0 Comments

  Cause, I had a manual installation of node on my Windows 10 machine and also a NVM installation Solution Remove node: “Add or Remove programs” Remove cache: C:\Users\xxx\AppData\Roaming\npm C:\Users\xxx\AppData\Roaming\npm-cache C:\Program Files\nodejs   Remove all

GitLab – FastLane – bundle– Apple M1 – Error no locale UTF-8

0 Comments

  When executing bundle exec fastlane env, I was getting an error indicating a supported UTF-8 locale could not be found. Fixed this by following “Set up environment variables” on https://docs.fastlane.tools/getting-started/ios/setup/ Add export LC_ALL=en_US.UTF-8 export

GitLab – FastLane – Apple M1 – How to fix: Permission denied @ rb_sysopen – /Users/roelvanlisdonk/Library/MobileDevice/Provisioning Profiles/1111111-111-1111-1111-111111111.mobileprovision

0 Comments

  When executing “bundle exec fastlane mylane”, I was getting the error: Permission denied @ rb_sysopen – /Users/roelvanlisdonk/Library/MobileDevice/Provisioning Profiles/1111111-111-1111-1111-111111111.mobileprovision   Solution Change folder permissions: sudo chown -R $(whoami) “/Users/roelvanlisdonk/Library/MobileDevice/Provisioning Profiles/12c0f4c3-8219-4c47-b204-65d77a05ece4.mobileprovision”