Skip to content

Commit

Permalink
Merge pull request #1070 from icsharpcode/versionupdates
Browse files Browse the repository at this point in the history
Web version updates
  • Loading branch information
GrahamTheCoder authored Dec 21, 2023
2 parents 311e1e6 + ee0a02b commit ee8e18f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 31 deletions.
10 changes: 6 additions & 4 deletions Web/ClientApp/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import 'bootstrap/dist/css/bootstrap.css';
import React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';

const baseUrl = document.getElementsByTagName('base')[0].getAttribute('href') || undefined;
const rootElement = document.getElementById('root');

ReactDOM.render(
const container = document.getElementById('root');
const root = createRoot(container!);

root.render(
<BrowserRouter basename={baseUrl}>
<App />
</BrowserRouter>,
rootElement);
</BrowserRouter>);

registerServiceWorker();
51 changes: 26 additions & 25 deletions Web/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:40163",
"sslPort": 44360
}
"profiles": {
"CodeConverter": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "https://localhost:44463/CodeConverter",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.SpaProxy"
},
"applicationUrl": "https://localhost:7183;http://localhost:5183"
},
"profiles": {
"CodeConverter": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "https://localhost:7183;http://localhost:5183",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.SpaProxy"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.SpaProxy"
}
}
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.SpaProxy"
}
}
},
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:40163",
"sslPort": 44360
}
}
}
4 changes: 2 additions & 2 deletions Web/Web.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>ICSharpCode.CodeConverter.Web</RootNamespace>
<AssemblyName>ICSharpCode.CodeConverter.Web</AssemblyName>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
Expand All @@ -21,7 +21,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.SpaProxy" Version="7.0.1" />
<PackageReference Include="Microsoft.AspNetCore.SpaProxy" Version="8.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
</ItemGroup>
Expand Down

0 comments on commit ee8e18f

Please sign in to comment.