-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Project and Build related files
- Refactor Project files - Refactor Markdown files - Remove unnecessary files - Use latest NuGet and config - Update 'Monaco.Editor' package - Update test package references
- Loading branch information
Showing
28 changed files
with
105 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
[Rr]eleases/ | ||
x64/ | ||
x86/ | ||
build/ | ||
bld/ | ||
[Bb]in/ | ||
[Oo]bj/ | ||
|
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,36 +1,38 @@ | ||
Welcome to the Notifications section of the toolkit! This contains the Notifications library, including the object model for tile, toast, and badge XML (previously called NotificationsExtensions). | ||
# UWP Notifications | ||
|
||
Welcome to the Notifications section of the toolkit! This contains the Notifications library, including the object model for tile, toast, and badge XML (previously called `NotificationsExtensions`). | ||
|
||
## Where should I add new code? | ||
Any code for generating notifications should be written in the Microsoft.Toolkit.Uwp.Notifications project. | ||
|
||
Any code for generating notifications should be written in the `Microsoft.Toolkit.Uwp.Notifications` project. | ||
|
||
If there's UWP-specific code, use the appropriate `#ifdef`, `WINDOWS_UWP` or `WINRT`. | ||
|
||
## What are all the projects for? | ||
All the code is contained on the Microsoft.Toolkit.Uwp.Notifications project. | ||
|
||
It outputs `netstandard1.4`, `uap10.0`, `native` for WinRT, and netcoreapp for .Net Core projects. The UWP library is only for C#, while the WinRT library is a Windows Runtime Component for C++. | ||
|
||
All the code is contained on the `Microsoft.Toolkit.Uwp.Notifications` project. | ||
|
||
| C# | C++ | | ||
| ---------------- | ------------------- | | ||
| NET Standard 1.4 | UWP WinRT Component | | ||
| UWP C# DLL | | | ||
| .Net Core DLL | | | ||
|
||
It outputs `netstandard1.4`, `uap10.0`, `native` for WinRT, and `netcoreapp3.1` for .NET Core projects. The UWP library is only for C#, while the WinRT library is a Windows Runtime Component for C++. | ||
|
||
| C# | C++ | | ||
| --------------------- | ------------------- | | ||
| .NET Standard Library | UWP WinRT Component | | ||
| .NET Core Library | | | ||
| UWP C# Library | | | ||
|
||
## Scenarios we want to support | ||
|
||
Imagine you add this library to a .NET Standard class library, and you also add it to your UWP app. In this case, your .NET Standard class library will receive the NETStandard dll. Your UWP project will receive the UWP dll. | ||
Imagine you add this library to a .NET Standard class library, and you also add it to your UWP app. In this case, your .NET Standard class library will receive the .NET Standard DLL. Your UWP project will receive the UWP DLL. | ||
|
||
## How are the test projects organized? | ||
|
||
If you look in the UnitTests folder of the repo, you'll notice that there's three projects... | ||
- UnitTests.Notifications.Shared | ||
- UnitTests.Notifications.NetCore | ||
- UnitTests.Notifications.UWP | ||
- UnitTests.Notifications.WinRT | ||
If you look in the `UnitTests` folder of the repo, you'll notice that there are three projects... | ||
|
||
- `UnitTests.Notifications.Shared` | ||
- `UnitTests.Notifications.NetCore` | ||
- `UnitTests.Notifications.UWP` | ||
- `UnitTests.Notifications.WinRT` | ||
|
||
That's because in our source code, we have some #IF defs for switching between the different types of reflection that C# uses, since it's different between a .NET Standard and WinRT code. | ||
That's because in our source code, we have some `#ifdef` for switching between the different types of reflection that C# uses, since it's different between a .NET Standard and WinRT code. | ||
|
||
Therefore, there are two different code paths, one path for NETFX_CORE, and another for when that isn't present. The two test projects exercise both code paths. | ||
Therefore, there are two different code paths, one path for `NETFX_CORE`, and another for when that isn't present. The two test projects exercise both code paths. |
Oops, something went wrong.