@ -1,2 +1,8 @@
|
||||
# mchSamples .NET Core
|
||||
|
||||
## Tools to install
|
||||
|
||||
Here are all the different Tools to be installed with Visual Studio 2019, in order to be able to use .NET Core 2.2:
|
||||
* .NET Core 2.2.6: https://dotnet.microsoft.com/download/dotnet-core/2.2
|
||||
* direct link to SDK: https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-2.2.301-windows-x64-installer
|
||||
* direct link to ASP.NET Core & .NET Core installers: https://dotnet.microsoft.com/download/thank-you/dotnet-runtime-2.2.6-windows-hosting-bundle-installer
|
@ -0,0 +1,8 @@
|
||||
{
|
||||
"profiles": {
|
||||
"ex_003_003_Main_arguments": {
|
||||
"commandName": "Project",
|
||||
"commandLineArgs": "I love C# and .NET Core"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
## How to change the arguments passed to the Main method?
|
||||
|
||||
##### Method 1:
|
||||
- Access the properties of the project (right click on the Project file -> Properties).
|
||||
- Access the debug tab
|
||||
- You can now change the application arguments!
|
||||
##### Method 2:
|
||||
- Change the launchSettings.json file in Properties under the project file
|
||||
- to (for instance):
|
||||
``` json
|
||||
{
|
||||
"profiles": {
|
||||
"ex_003_003_Main_arguments": {
|
||||
"commandName": "Project",
|
||||
"commandLineArgs": "I love C# and .NET Core"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<nounours nom="Chewbacca">
|
||||
<naissance>1977-05-27T00:00:00+02:00</naissance>
|
||||
<naissance>1977-05-27T00:00:00</naissance>
|
||||
<nb_poils>1234567</nb_poils>
|
||||
</nounours>
|
@ -0,0 +1,7 @@
|
||||
<Application
|
||||
x:Class="ex_050_010_Threading_en_UWP.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:ex_050_010_Threading_en_UWP">
|
||||
|
||||
</Application>
|
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 3.1 KiB |
@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<Package
|
||||
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
||||
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
|
||||
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
||||
IgnorableNamespaces="uap mp">
|
||||
|
||||
<Identity
|
||||
Name="fb6d3437-07d6-4468-8c7a-2ad12a352ae6"
|
||||
Publisher="CN=mch"
|
||||
Version="1.0.0.0" />
|
||||
|
||||
<mp:PhoneIdentity PhoneProductId="fb6d3437-07d6-4468-8c7a-2ad12a352ae6" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
||||
|
||||
<Properties>
|
||||
<DisplayName>ex_050_010_Threading_en_UWP</DisplayName>
|
||||
<PublisherDisplayName>mch</PublisherDisplayName>
|
||||
<Logo>Assets\StoreLogo.png</Logo>
|
||||
</Properties>
|
||||
|
||||
<Dependencies>
|
||||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
|
||||
</Dependencies>
|
||||
|
||||
<Resources>
|
||||
<Resource Language="x-generate"/>
|
||||
</Resources>
|
||||
|
||||
<Applications>
|
||||
<Application Id="App"
|
||||
Executable="$targetnametoken$.exe"
|
||||
EntryPoint="ex_050_010_Threading_en_UWP.App">
|
||||
<uap:VisualElements
|
||||
DisplayName="ex_050_010_Threading_en_UWP"
|
||||
Square150x150Logo="Assets\Square150x150Logo.png"
|
||||
Square44x44Logo="Assets\Square44x44Logo.png"
|
||||
Description="ex_050_010_Threading_en_UWP"
|
||||
BackgroundColor="transparent">
|
||||
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
|
||||
<uap:SplashScreen Image="Assets\SplashScreen.png" />
|
||||
</uap:VisualElements>
|
||||
</Application>
|
||||
</Applications>
|
||||
|
||||
<Capabilities>
|
||||
<Capability Name="internetClient" />
|
||||
</Capabilities>
|
||||
</Package>
|
@ -0,0 +1,31 @@
|
||||
<!--
|
||||
Ce fichier contient les directives runtime utilisées par .NET Native. Les valeurs par défaut conviennent à la plupart des
|
||||
développeurs. Toutefois, vous pouvez modifier ces paramètres pour changer le comportement de
|
||||
l'optimiseur .NET Native.
|
||||
|
||||
Les directives runtime sont documentées sur https://go.microsoft.com/fwlink/?LinkID=391919
|
||||
|
||||
Pour activer complètement la réflexion de App1.MyClass et de tous ses membres publics/privés
|
||||
<Type Name="App1.MyClass" Dynamic="Required All"/>
|
||||
|
||||
Pour activer la création dynamique de l'instanciation spécifique de AppClass<T> sur System.Int32
|
||||
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
|
||||
|
||||
Utilisation de la directive Namespace pour appliquer la stratégie de réflexion à tous les types d'un espace de noms particulier
|
||||
<Namespace Name="DataClasses.ViewModels" Serialize="All" />
|
||||
-->
|
||||
|
||||
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
||||
<Application>
|
||||
<!--
|
||||
Un élément Assembly dont Name="*Application*" s'applique à tous les assemblys du
|
||||
package d'application. Les astérisques ne sont pas des caractères génériques.
|
||||
-->
|
||||
<Assembly Name="*Application*" Dynamic="Required All" />
|
||||
|
||||
|
||||
<!-- Ajoutez ici les directives runtime spécifiques à votre application. -->
|
||||
|
||||
|
||||
</Application>
|
||||
</Directives>
|
@ -1,8 +0,0 @@
|
||||
<Application x:Class="ex_050_010_Threading_en_WPF.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
@ -1,15 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||
<AssemblyName>ex_050_010_Threading_en_WPF</AssemblyName>
|
||||
<OutputType>Exe</OutputType>
|
||||
<PackageId>ex_050_010_Threading_en_WPF</PackageId>
|
||||
<RuntimeFrameworkVersion>2.2</RuntimeFrameworkVersion>
|
||||
<PackageTargetFallback>$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
|
||||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
|
||||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
|
||||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
@ -1,8 +0,0 @@
|
||||
<Application x:Class="ex_052_006_problématique_6.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
@ -1,15 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||
<AssemblyName>ex_052_006_problématique_6</AssemblyName>
|
||||
<OutputType>Exe</OutputType>
|
||||
<PackageId>ex_052_006_problématique_6</PackageId>
|
||||
<RuntimeFrameworkVersion>2.2</RuntimeFrameworkVersion>
|
||||
<PackageTargetFallback>$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
|
||||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
|
||||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
|
||||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,7 @@
|
||||
<Application
|
||||
x:Class="ex_052_006_problématique_6_UWP.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:ex_052_006_problématique_6_UWP">
|
||||
|
||||
</Application>
|
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 3.1 KiB |
@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<Package
|
||||
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
||||
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
|
||||
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
||||
IgnorableNamespaces="uap mp">
|
||||
|
||||
<Identity
|
||||
Name="987e36fb-9766-4e2f-8336-765cadbd7d3c"
|
||||
Publisher="CN=mch"
|
||||
Version="1.0.0.0" />
|
||||
|
||||
<mp:PhoneIdentity PhoneProductId="987e36fb-9766-4e2f-8336-765cadbd7d3c" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
||||
|
||||
<Properties>
|
||||
<DisplayName>ex_052_006_problématique_6_UWP</DisplayName>
|
||||
<PublisherDisplayName>mch</PublisherDisplayName>
|
||||
<Logo>Assets\StoreLogo.png</Logo>
|
||||
</Properties>
|
||||
|
||||
<Dependencies>
|
||||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
|
||||
</Dependencies>
|
||||
|
||||
<Resources>
|
||||
<Resource Language="x-generate"/>
|
||||
</Resources>
|
||||
|
||||
<Applications>
|
||||
<Application Id="App"
|
||||
Executable="$targetnametoken$.exe"
|
||||
EntryPoint="ex_052_006_problématique_6_UWP.App">
|
||||
<uap:VisualElements
|
||||
DisplayName="ex_052_006_problématique_6_UWP"
|
||||
Square150x150Logo="Assets\Square150x150Logo.png"
|
||||
Square44x44Logo="Assets\Square44x44Logo.png"
|
||||
Description="ex_052_006_problématique_6_UWP"
|
||||
BackgroundColor="transparent">
|
||||
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
|
||||
<uap:SplashScreen Image="Assets\SplashScreen.png" />
|
||||
</uap:VisualElements>
|
||||
</Application>
|
||||
</Applications>
|
||||
|
||||
<Capabilities>
|
||||
<Capability Name="internetClient" />
|
||||
</Capabilities>
|
||||
</Package>
|
@ -0,0 +1,31 @@
|
||||
<!--
|
||||
Ce fichier contient les directives runtime utilisées par .NET Native. Les valeurs par défaut conviennent à la plupart des
|
||||
développeurs. Toutefois, vous pouvez modifier ces paramètres pour changer le comportement de
|
||||
l'optimiseur .NET Native.
|
||||
|
||||
Les directives runtime sont documentées sur https://go.microsoft.com/fwlink/?LinkID=391919
|
||||
|
||||
Pour activer complètement la réflexion de App1.MyClass et de tous ses membres publics/privés
|
||||
<Type Name="App1.MyClass" Dynamic="Required All"/>
|
||||
|
||||
Pour activer la création dynamique de l'instanciation spécifique de AppClass<T> sur System.Int32
|
||||
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
|
||||
|
||||
Utilisation de la directive Namespace pour appliquer la stratégie de réflexion à tous les types d'un espace de noms particulier
|
||||
<Namespace Name="DataClasses.ViewModels" Serialize="All" />
|
||||
-->
|
||||
|
||||
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
||||
<Application>
|
||||
<!--
|
||||
Un élément Assembly dont Name="*Application*" s'applique à tous les assemblys du
|
||||
package d'application. Les astérisques ne sont pas des caractères génériques.
|
||||
-->
|
||||
<Assembly Name="*Application*" Dynamic="Required All" />
|
||||
|
||||
|
||||
<!-- Ajoutez ici les directives runtime spécifiques à votre application. -->
|
||||
|
||||
|
||||
</Application>
|
||||
</Directives>
|