diff --git a/backend/src/Designer/Services/Implementation/AppDevelopmentService.cs b/backend/src/Designer/Services/Implementation/AppDevelopmentService.cs index 53b679ebf15..27c2419c7a6 100644 --- a/backend/src/Designer/Services/Implementation/AppDevelopmentService.cs +++ b/backend/src/Designer/Services/Implementation/AppDevelopmentService.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -305,7 +306,7 @@ public bool TryGetFrontendVersion(AltinnRepoEditingContext altinnRepoEditingCont try { - indexFilePath = altinnAppGitRepository.FindFiles(new[] { "App/Views/Home/Index.cshtml" }).FirstOrDefault(); + indexFilePath = altinnAppGitRepository.FindFiles(new[] { "App/views/Home/Index.cshtml" }).FirstOrDefault(); } catch (DirectoryNotFoundException) { diff --git a/backend/tests/Designer.Tests/Controllers/AppDevelopmentController/GetAppVersionTests.cs b/backend/tests/Designer.Tests/Controllers/AppDevelopmentController/GetAppVersionTests.cs index fe0f13d1067..0479b28cec8 100644 --- a/backend/tests/Designer.Tests/Controllers/AppDevelopmentController/GetAppVersionTests.cs +++ b/backend/tests/Designer.Tests/Controllers/AppDevelopmentController/GetAppVersionTests.cs @@ -40,7 +40,7 @@ public async Task GetAppVersion_GivenCsProjFile_ShouldReturnOK(string org, strin { "[[appLibVersion]]", backendVersion }, { "[[frontendVersion]]", frontendVersion } }; await AddCsProjToRepo("App/App.csproj", csprojTemplate, replacements); - await AddFrontendIndexToRepo("App/Views/Home/Index.cshtml", indesCshtmlTemplate, replacements); + await AddFrontendIndexToRepo("App/views/Home/Index.cshtml", indesCshtmlTemplate, replacements); string url = VersionPrefix(org, targetRepository); @@ -101,7 +101,7 @@ public async Task GetAppVersion_GivenIndexFileWithoutFrontendVersion_ShouldRetur await CopyRepositoryForTest(org, app, developer, targetRepository); await AddCsProjToRepo("App/App.csproj", csprojTemplate, new Dictionary() { { "[[appLibVersion]]", backendVersion } }); - await AddFrontendIndexToRepo("App/Views/Home/Index.cshtml", indesCshtmlTemplate); + await AddFrontendIndexToRepo("App/views/Home/Index.cshtml", indesCshtmlTemplate); string url = VersionPrefix(org, targetRepository); using var response = await HttpClient.GetAsync(url);