Skip to content

Commit 6eb38ab

Browse files
authored
Merge pull request #2906 from PrismLibrary/dev/ds/net46
Revert changes - .NET 461 support
2 parents c0cc829 + 7879531 commit 6eb38ab

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

src/Prism.Core/Prism.Core.csproj

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net47;net6.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net461;net47;net6.0</TargetFrameworks>
55
<AssemblyName>Prism</AssemblyName>
66
<PackageId>Prism.Core</PackageId>
77
<RootNamespace>Prism</RootNamespace>
@@ -14,6 +14,11 @@
1414
<Compile Update="Properties\Resources.Designer.cs" DesignTime="True" AutoGen="True" DependentUpon="Resources.resx" />
1515
<EmbeddedResource Update="Properties\Resources.resx" Generator="ResXFileCodeGenerator" LastGenOutput="Resources.Designer.cs" />
1616
</ItemGroup>
17+
18+
<ItemGroup Condition=" $(TargetFramework) == 'net461' ">
19+
<PackageReference Include="System.ValueTuple" />
20+
</ItemGroup>
21+
1722
<ItemGroup>
1823
<ProjectReference Include="..\Prism.Events\Prism.Events.csproj" />
1924
</ItemGroup>

src/Prism.Core/Properties/IsExternalInit.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Linq;
33

4-
#if NETSTANDARD || NET47
4+
#if NETSTANDARD || NET461_OR_GREATER
55
namespace System.Runtime.CompilerServices;
66

77
internal static class IsExternalInit

src/Prism.Events/Prism.Events.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net47;net6.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net461;net47;net6.0</TargetFrameworks>
55
<!-- Summary is not actually supported at this time. Including the summary for future support. -->
66
<!--<Summary>Prism provides an implementation of a collection of design patterns that are helpful in writing well structured and maintainable applications.</Summary>-->
77
<Description>Prism.Events is a library that facilitates communication between loosely coupled components in an application. It provides an event aggregator service that allows publishers and subscribers to interact through events without direct references. With multicast publish/subscribe functionality, multiple publishers can raise the same event, and multiple subscribers can listen to it, enabling flexible and efficient communication.</Description>

src/Wpf/Prism.DryIoc.Wpf/Prism.DryIoc.Wpf.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
33

44
<PropertyGroup>
5-
<TargetFrameworks>net47;net6.0-windows</TargetFrameworks>
5+
<TargetFrameworks>net461;net47;net6.0-windows</TargetFrameworks>
66
<UseWPF>true</UseWPF>
77
<RootNamespace>Prism.DryIoc</RootNamespace>
88
<PackageId>Prism.DryIoc</PackageId>

src/Wpf/Prism.Unity.Wpf/Prism.Unity.Wpf.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
33

44
<PropertyGroup>
5-
<TargetFrameworks>net47;net6.0-windows</TargetFrameworks>
5+
<TargetFrameworks>net461;net47;net6.0-windows</TargetFrameworks>
66
<UseWPF>true</UseWPF>
77
<RootNamespace>Prism.Unity</RootNamespace>
88
<PackageId>Prism.Unity</PackageId>

src/Wpf/Prism.Wpf/Prism.Wpf.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<PropertyGroup>
55
<AppDesignerFolder>Properties</AppDesignerFolder>
66
<RootNamespace>Prism</RootNamespace>
7-
<TargetFrameworks>net47;net6.0-windows</TargetFrameworks>
7+
<TargetFrameworks>net461;net47;net6.0-windows</TargetFrameworks>
88
<UseWPF>true</UseWPF>
99
<!--<Summary>Prism libraries related to user interface composition, regions, and modularity for WPF.</Summary>-->
1010
<Description>Prism is a fully open source version of the Prism guidance originally produced by Microsoft Patterns &amp; Practices. Prism provides an implementation of a collection of design patterns that are helpful in writing well structured, maintainable, and testable XAML applications, including MVVM, dependency injection, commanding, event aggregation, and more. Prism's core functionality is a shared library targeting the .NET Framework and .NET Standard. Features that need to be platform specific are implemented in the respective libraries for the target platform (WPF, Uno Platform, and Xamarin Forms).

0 commit comments

Comments
 (0)