Skip to content

Commit

Permalink
Version 3.2.0
Browse files Browse the repository at this point in the history
## Version 3.2.0 - March 5, 2021

  - **Changed:** .NET Framework target is changed from net40 to net461.
    So from now on, you need to have a .NET Framework 4.6.1 or above project to reference our .NET Framework DLL (not related to our .netstandard2.0 DLL).
    Minimum supported development environment version is changed from Visual Studio 2010 to Visual Studio 2012 (first to support net461 targeting pack).
    Minimum supported deployment server OS is changed from Windows Server 2003 R2 to Windows Server 2008 R2 SP1 (first to support net461 runtime).
    Minimum supported deployment client OS is changed from Windows Vista to Windows 7 SP1 (first to support net461 runtime).

  - **Improved:** Example projects:

    - Updated AspNetCoreCS project to net5.0 (Visual Studio 2019+).

    - Updated AspNetCoreOnNetFullCS project to net472 and ASP.NET Core 2.2.0 (Visual Studio 2017+).

    - Updated AspNetMvcCS and AspNetMvcVB projects to net461 and ASP.NET MVC 5.2.7 (Visual Studio 2012+).

    - Updated AspNetWebFormsCS and AspNetWebFormsVB projects to net461 (Visual Studio 2012+).

    - Fixed HintPath attributes of <Reference> elements in project files with default path "..\packages\" ("Solutiondir\packages")
      as msbuild never updates HintPath even if it restores packages via packages.config (even if we provide a NuGet.config).
      With default path, users can restore and compile the non-SDK-style projects seamlessly on their machine.
      Applies to AspNetMvcCS, AspNetMvcVB, AspNetWebFormsCS, AspNetWebFormsVB projects.
  • Loading branch information
GleamTech committed Mar 5, 2022
1 parent aaaae15 commit be2bd10
Show file tree
Hide file tree
Showing 44 changed files with 541 additions and 515 deletions.
6 changes: 3 additions & 3 deletions Examples/AspNetCoreCS.sln
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.9.28307.812
MinimumVisualStudioVersion = 15.0.26730.3
# Visual Studio 16
VisualStudioVersion = 16.0.30709.132
MinimumVisualStudioVersion = 11.0.50727.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AspNetCoreCS", "AspNetCoreCS\AspNetCoreCS.csproj", "{FDA0E92D-1D0D-4EC2-AA71-7D9D037A7C01}"
EndProject
Global
Expand Down
22 changes: 9 additions & 13 deletions Examples/AspNetCoreCS/AspNetCoreCS.csproj
Original file line number Diff line number Diff line change
@@ -1,44 +1,40 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<AssemblyName>GleamTech.VideoUltimateExamples.AspNetCoreCS</AssemblyName>
<RootNamespace>GleamTech.VideoUltimateExamples.AspNetCoreCS</RootNamespace>
<!--disable NETSDK1138 outdated SDK warning-->
<CheckEolTargetFramework>false</CheckEolTargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.9" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="GleamTech.Common" Version="5.0.0" />
<PackageReference Include="GleamTech.VideoUltimate" Version="3.1.0" />
<PackageReference Include="GleamTech.Common" Version="5.1.0" />
<PackageReference Include="GleamTech.VideoUltimate" Version="3.2.0" />
</ItemGroup>

<ItemGroup>
<!-- These package references are added because GleamTech DLL's are not added via PackageReference so dependencies needs to be resolved manually -->
<PackageReference Include="System.Security.Principal.Windows">
<Version>4.7.0</Version>
</PackageReference>
<PackageReference Include="System.Drawing.Common">
<PackageReference Include="Microsoft.Win32.Registry">
<Version>4.7.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.Win32.Registry">
<PackageReference Include="System.Runtime.Caching">
<Version>4.7.0</Version>
</PackageReference>
<PackageReference Include="System.Text.Encoding.CodePages">
<PackageReference Include="System.Drawing.Common">
<Version>4.7.0</Version>
</PackageReference>
<PackageReference Include="System.Security.Permissions">
<PackageReference Include="System.Text.Encoding.CodePages">
<Version>4.7.0</Version>
</PackageReference>
<PackageReference Include="System.Runtime.Caching">
<PackageReference Include="System.Security.Permissions">
<Version>4.7.0</Version>
</PackageReference>
</ItemGroup>

<ItemGroup>
<_CustomFiles Include="Controllers\**\*" />
<_CustomFiles Include="Views\**\*" />
Expand Down
16 changes: 16 additions & 0 deletions Examples/AspNetCoreCS/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System.Diagnostics;
using GleamTech.VideoUltimateExamples.AspNetCoreCS.Models;

namespace GleamTech.VideoUltimateExamples.AspNetCoreCS.Controllers
{
public partial class HomeController : Controller
{
private readonly ILogger<HomeController> _logger;

public HomeController(ILogger<HomeController> logger)
{
_logger = logger;
}

public IActionResult Index()
{
return View();
}

[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()
{
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
}
}
}
11 changes: 11 additions & 0 deletions Examples/AspNetCoreCS/Models/ErrorViewModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;

namespace GleamTech.VideoUltimateExamples.AspNetCoreCS.Models
{
public class ErrorViewModel
{
public string RequestId { get; set; }

public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
}
}
16 changes: 9 additions & 7 deletions Examples/AspNetCoreCS/Program.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace GleamTech.VideoUltimateExamples.AspNetCoreCS
{
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
CreateHostBuilder(args).Build().Run();
}

public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
}
9 changes: 5 additions & 4 deletions Examples/AspNetCoreCS/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:65302/",
"applicationUrl": "http://localhost:42955",
"sslPort": 0
}
},
Expand All @@ -17,11 +17,12 @@
},
"AspNetCoreCS": {
"commandName": "Project",
"dotnetRunMessages": "true",
"launchBrowser": true,
"applicationUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:54486/"
}
}
}
}
27 changes: 22 additions & 5 deletions Examples/AspNetCoreCS/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using GleamTech.AspNet;
using GleamTech.AspNet.Core;
using GleamTech.VideoUltimate;
Expand All @@ -10,21 +12,32 @@ namespace GleamTech.VideoUltimateExamples.AspNetCoreCS
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}

public IConfiguration Configuration { get; }

// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
services.AddControllersWithViews();

services.AddGleamTech();
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
app.UseExceptionHandler("/Home/Error");
}

app.UseGleamTech();

Expand All @@ -38,11 +51,15 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)

app.UseStaticFiles();

app.UseMvc(routes =>
app.UseRouting();

app.UseAuthorization();

app.UseEndpoints(endpoints =>
{
routes.MapRoute(
endpoints.MapControllerRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
pattern: "{controller=Home}/{action=Index}/{id?}");
});
}
}
Expand Down
25 changes: 25 additions & 0 deletions Examples/AspNetCoreCS/Views/Shared/Error.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@model GleamTech.VideoUltimateExamples.AspNetCoreCS.Models.ErrorViewModel
@{
ViewData["Title"] = "Error";
}

<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>

@if (Model.ShowRequestId)
{
<p>
<strong>Request ID:</strong> <code>@Model.RequestId</code>
</p>
}

<h3>Development Mode</h3>
<p>
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
</p>
<p>
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
It can result in displaying sensitive information from exceptions to end users.
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
and restarting the app.
</p>
58 changes: 0 additions & 58 deletions Examples/AspNetCoreCS/Views/Web.config

This file was deleted.

3 changes: 3 additions & 0 deletions Examples/AspNetCoreCS/Views/_ViewImports.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@using GleamTech.VideoUltimateExamples.AspNetCoreCS
@using GleamTech.VideoUltimateExamples.AspNetCoreCS.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
3 changes: 3 additions & 0 deletions Examples/AspNetCoreCS/Views/_ViewStart.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@{
Layout = null;
}
6 changes: 0 additions & 6 deletions Examples/AspNetCoreCS/app.config

This file was deleted.

7 changes: 3 additions & 4 deletions Examples/AspNetCoreCS/appsettings.Development.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Debug",
"System": "Information",
"Microsoft": "Information"
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}
8 changes: 5 additions & 3 deletions Examples/AspNetCoreCS/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
//"VideoUltimate:LicenseKey": "QQJDJLJP34...",

"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Warning"
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
},
"AllowedHosts": "*"
}
4 changes: 2 additions & 2 deletions Examples/AspNetCoreOnNetFullCS.sln
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2000
MinimumVisualStudioVersion = 10.0.40219.1
VisualStudioVersion = 15.0.26730.3
MinimumVisualStudioVersion = 11.0.50727.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AspNetCoreOnNetFullCS", "AspNetCoreOnNetFullCS\AspNetCoreOnNetFullCS.csproj", "{2AD943F9-8CEA-402A-AE92-16E007AC2166}"
EndProject
Global
Expand Down
14 changes: 7 additions & 7 deletions Examples/AspNetCoreOnNetFullCS/AspNetCoreOnNetFullCS.csproj
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net461</TargetFramework>
<TargetFramework>net472</TargetFramework>
<AssemblyName>GleamTech.VideoUltimateExamples.AspNetCoreOnNetFullCS</AssemblyName>
<RootNamespace>GleamTech.VideoUltimateExamples.AspNetCoreOnNetFullCS</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.0.3" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.3" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.2.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="GleamTech.Common" Version="5.0.0" />
<PackageReference Include="GleamTech.VideoUltimate" Version="3.1.0" />
<PackageReference Include="GleamTech.Common" Version="5.1.0" />
<PackageReference Include="GleamTech.VideoUltimate" Version="3.2.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading

0 comments on commit be2bd10

Please sign in to comment.