-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from EvotecIT/Bump-versions
Bump DLL's to most recent versions before 2.0
- Loading branch information
Showing
37 changed files
with
273 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
Sources/Mailozaurr.PowerShell/Mailozaurr.PowerShell.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<Company>Evotec</Company> | ||
<Authors>Przemyslaw Klys</Authors> | ||
<VersionPrefix>1.0.0</VersionPrefix> | ||
<TargetFrameworks>net472;netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks> | ||
<AssemblyName>Mailozaurr.PowerShell</AssemblyName> | ||
|
||
<Copyright>(c) 2011 - 2024 Przemyslaw Klys @ Evotec. All rights reserved.</Copyright> | ||
<LangVersion>latest</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Mailozaurr\Mailozaurr.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="PowerShellStandard.Library" Version="5.1.1" PrivateAssets="all" /> | ||
<PackageReference Include="System.Management" Version="7.0.2" PrivateAssets="all" /> | ||
</ItemGroup> | ||
|
||
<!-- Make sure the output DLL's from library are included in the output --> | ||
<PropertyGroup> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
</PropertyGroup> | ||
|
||
<!-- We need to remove PowerShell conflicting libraries as it will break output --> | ||
<!-- <Target Name="RemoveFilesAfterBuild" AfterTargets="Build;Publish"> | ||
<Delete Files="$(OutDir)System.Management.Automation.dll" /> | ||
<Delete Files="$(OutDir)System.Management.dll" /> | ||
<Delete Files="$(OutDir)runtimes/win/lib/net6.0/System.Management.dll" /> | ||
</Target> --> | ||
|
||
<!-- <ItemGroup> | ||
<None Update="runtimes/win/lib/net6.0/System.Management.dll"> | ||
<ExcludeFromSingleFile>true</ExcludeFromSingleFile> | ||
<ExcludeFromPublish>true</ExcludeFromPublish> | ||
</None> | ||
<None Update="runtimes\win\lib\net6.0\System.Management.dll"> | ||
<ExcludeFromSingleFile>true</ExcludeFromSingleFile> | ||
<ExcludeFromPublish>true</ExcludeFromPublish> | ||
</None> | ||
</ItemGroup> --> | ||
|
||
<!-- <ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' "> | ||
<PackageReference Include="System.Management" Version="7.0.2" PrivateAssets="all" /> | ||
</ItemGroup> --> | ||
|
||
<PropertyGroup Condition=" '$(TargetFramework)' == 'net472' "> | ||
<DefineConstants>$(DefineConstants);FRAMEWORK</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Using Include="Mailozaurr" /> | ||
<Using Include="System.Collections" /> | ||
<Using Include="System.Management.Automation" PrivateAssets="all" /> | ||
<Using Include="System.Management" PrivateAssets="all" /> | ||
<Using Include="System.Threading.Tasks" /> | ||
<Using Include="System.Collections.Concurrent" /> | ||
<Using Include="System.Threading" /> | ||
<Using Include="System" /> | ||
<Using Include="System.Collections.Generic" /> | ||
<Using Include="System.Linq" /> | ||
<Using Include="System.Text" /> | ||
<Using Include="System.IO" /> | ||
<Using Include="System.Net" /> | ||
</ItemGroup> | ||
</Project> |
3 changes: 3 additions & 0 deletions
3
Sources/Mailozaurr.PowerShell/Mailozaurr.PowerShell.csproj.DotSettings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=communication/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=definitions/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.5.002.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mailozaurr.PowerShell", "Mailozaurr.PowerShell.csproj", "{F0AD2194-830B-49A2-85BE-87A18F6C3E4C}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{F0AD2194-830B-49A2-85BE-87A18F6C3E4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{F0AD2194-830B-49A2-85BE-87A18F6C3E4C}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{F0AD2194-830B-49A2-85BE-87A18F6C3E4C}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{F0AD2194-830B-49A2-85BE-87A18F6C3E4C}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {F343B4D3-FF83-4CD2-A765-FCB55459F16F} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
using System; | ||
using System.IO; | ||
using System.Management.Automation; | ||
using System.Reflection; | ||
|
||
public class OnModuleImportAndRemove : IModuleAssemblyInitializer, IModuleAssemblyCleanup { | ||
public void OnImport() { | ||
if (IsNetFramework()) { | ||
AppDomain.CurrentDomain.AssemblyResolve += MyResolveEventHandler; | ||
} | ||
} | ||
|
||
public void OnRemove(PSModuleInfo module) { | ||
if (IsNetFramework()) { | ||
AppDomain.CurrentDomain.AssemblyResolve -= MyResolveEventHandler; | ||
} | ||
} | ||
|
||
private static Assembly MyResolveEventHandler(object sender, ResolveEventArgs args) { | ||
//This code is used to resolve the assemblies | ||
//Console.WriteLine($"Resolving {args.Name}"); | ||
var directoryPath = Path.GetDirectoryName(typeof(OnModuleImportAndRemove).Assembly.Location); | ||
var filesInDirectory = Directory.GetFiles(directoryPath); | ||
|
||
foreach (var file in filesInDirectory) { | ||
var fileName = Path.GetFileName(file); | ||
var assemblyName = Path.GetFileNameWithoutExtension(file); | ||
|
||
if (args.Name.StartsWith(assemblyName)) { | ||
//Console.WriteLine($"Loading {args.Name} assembly {fileName}"); | ||
return Assembly.LoadFile(file); | ||
} | ||
} | ||
return null; | ||
} | ||
|
||
private bool IsNetFramework() { | ||
// Get the version of the CLR | ||
Version clrVersion = System.Environment.Version; | ||
// Check if the CLR version is 4.x.x.x | ||
return clrVersion.Major == 4; | ||
} | ||
|
||
private bool IsNetCore() { | ||
return System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription.StartsWith(".NET Core", StringComparison.OrdinalIgnoreCase); | ||
} | ||
|
||
private bool IsNet5OrHigher() { | ||
return System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription.StartsWith(".NET 5", StringComparison.OrdinalIgnoreCase) || | ||
System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription.StartsWith(".NET 6", StringComparison.OrdinalIgnoreCase) || | ||
System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription.StartsWith(".NET 7", StringComparison.OrdinalIgnoreCase) || | ||
System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription.StartsWith(".NET 8", StringComparison.OrdinalIgnoreCase); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.3.32804.467 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mailozaurr.PowerShell", "Mailozaurr.PowerShell\Mailozaurr.PowerShell.csproj", "{EEF3BFAD-C8A5-474C-BA52-5C20E66EF0F9}" | ||
ProjectSection(ProjectDependencies) = postProject | ||
{74FF5540-DB31-4031-BBE1-1A471A17CCFC} = {74FF5540-DB31-4031-BBE1-1A471A17CCFC} | ||
EndProjectSection | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mailozaurr", "Mailozaurr\Mailozaurr.csproj", "{74FF5540-DB31-4031-BBE1-1A471A17CCFC}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{EEF3BFAD-C8A5-474C-BA52-5C20E66EF0F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{EEF3BFAD-C8A5-474C-BA52-5C20E66EF0F9}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{EEF3BFAD-C8A5-474C-BA52-5C20E66EF0F9}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{EEF3BFAD-C8A5-474C-BA52-5C20E66EF0F9}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{74FF5540-DB31-4031-BBE1-1A471A17CCFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{74FF5540-DB31-4031-BBE1-1A471A17CCFC}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{74FF5540-DB31-4031-BBE1-1A471A17CCFC}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{74FF5540-DB31-4031-BBE1-1A471A17CCFC}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {F37BB785-3AB1-4498-8102-689C0E4C3924} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Mailozaurr/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=personalizations/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<Company>Evotec</Company> | ||
<Authors>Przemyslaw Klys</Authors> | ||
<VersionPrefix>1.0.0</VersionPrefix> | ||
<TargetFrameworks>net472;netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks> | ||
<AssemblyName>Mailozaurr</AssemblyName> | ||
<Copyright>(c) 2011 - 2024 Przemyslaw Klys @ Evotec. All rights reserved.</Copyright> | ||
<LangVersion>latest</LangVersion> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="DnsClient" Version="1.8.0" /> | ||
<PackageReference Include="EmailValidation" Version="1.2.0" /> | ||
<PackageReference Include="Google.Apis.Auth" Version="1.68.0" /> | ||
<PackageReference Include="MailKit" Version="4.8.0" /> | ||
<PackageReference Include="MimeKit" Version="4.8.0" /> | ||
<PackageReference Include="Microsoft.Identity.Client" Version="4.61.3" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Using Include="MailKit" /> | ||
<Using Include="MailKit.Net.Smtp" /> | ||
<Using Include="MailKit.Security" /> | ||
<Using Include="MailKit.Net.Pop3" /> | ||
<Using Include="MailKit.Net.Imap" /> | ||
<Using Include="MailKit.Net" /> | ||
<Using Include="MimeKit" /> | ||
<Using Include="MimeKit.Cryptography" /> | ||
<Using Include="System" /> | ||
<Using Include="System.Net" /> | ||
<Using Include="System.Net.Http" /> | ||
<Using Include="System.Text" /> | ||
<Using Include="System.Collections" /> | ||
<Using Include="System.Collections.Generic" /> | ||
<Using Include="System.IO" /> | ||
<Using Include="System.Linq" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=authentication/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=definitions/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=enums/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=helpers/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=logging/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=mailgun/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=microsoftgraph/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=sendgrid/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=smtp/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace Mailozaurr; | ||
|
||
internal class Temporary { | ||
} |