unoplatform / uno Goto Github PK
View Code? Open in Web Editor NEWBuild Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
Home Page: https://platform.uno
License: Apache License 2.0
Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
Home Page: https://platform.uno
License: Apache License 2.0
The generated appmanifest.xml for the UWP project has the following:
<Identity Name="$guid1$" Publisher="CN=nventive" Version="1.0.0.0" ProcessorArchitecture="x86" /> <mp:PhoneIdentity PhoneProductId="1897f84c-689e-44d3-a8b7-c521a62818ae" PhonePublisherId="00000000-0000-0000-0000-000000000000" /> <Properties> <DisplayName>$targetnametoken$</DisplayName> <PublisherDisplayName>$targetnametoken$</PublisherDisplayName> <Logo>Assets\StoreLogo.png</Logo>
The
I am thrilled with Uno because, well, it's about UWP, but there is currently one main concern that I am worried about, that is startup time, https://github.com/nventive/Uno.QuickStart is about 4-5 seconds on Android, and then there is https://github.com/nventive/Uno.Playground which takes about 15-18 seconds. Maybe you guys could investigate it before going any deeper.
Note: I am using android phone Xiaomi 5A
Thank you for investing your time with this.. 😄
As I said, I now migrate some of UWP's functionality to the browser, thanks to Uno's support for WebAssembly.
I need to open a local file in my browser. In UWP, the following code works fine:
`
Windows.Storage.Pickers.FileOpenPicker fileOpenPicker = new Windows.Storage.Pickers.FileOpenPicker();
fileOpenPicker.FileTypeFilter.Add(".jpg");
var jpgFile =await fileOpenPicker.PickSingleFileAsync();
if (jpgFile!=null)
{
tb_filename.Text = jpgFile.Name;
}
`
But the above code does not work in Wasm. Does this alternative code work? Thank you!
Differences from Avalonia
Using the ItemsControl.Items
property outside of a Xaml file is not supported properly.
See this comment: https://github.com/nventive/Uno/blob/26c5cc5992cae3c8c25adf51eb77ca4b0dd34e93/src/Uno.UI/UI/Xaml/Controls/ItemsControl/ItemsControl.cs#L227
This property should return an ItemCollection and should not expose a setter.
Will you make the extension available in the Visual Studio Marketplace so that we can download and update it from within VS?
In the QuickStart readme there is a link to the VSIX installer for "Uno Solution Template Visual Studio Extension". Installing that extension does not result in Visual Studio having a project template of "Uno App Solution". There is a new category ("CPS Projects") that has only a template for "UnoQuickStart.Shared" which creates just that one project. The app.xaml.cs and mainpage.xaml.cs have "namespace
VS2017 15.7
Windows 10 1803 (17134.48)
Cross-targeted projects don't include Xaml files by default, making the cross-targeted library creation cumbersome.
**\*.Xaml
should probably be included as Page
by default for projects including the Uno,UI
package.
The "File/New" experience for Cross-targeted projects also do not provide UWP user control templates, they should be added in the vsix.
I put a simple
<Button>OK</Button>
But on Android it only renders the Button, without the Text
On UWP, it renders OK.
If I change to
<Button><TextBlock>OK</TextBlock></Button>
Then it renders correctly on Both.
error:
Error Generation failed for Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator. System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: An error occured when processing ContentDialog at line 1:2 (.xaml) : An error occured when processing Grid at line 30:6 (.xaml) : An error occured when processing ScrollViewer at line 31:10 (.xaml) : An error occured when processing Grid at line 32:14 (.xaml) : Implicit styles in inline resources are not supported (Grid, Line 32:14) ---> ……….
Using UnoSolutionTemplate-1.30.3-wasm.vsix, the generated solution targets
Nugets warning are generated as it has to fallback on a listed version for the Droid and iOS projects.
All projects targets the same listed version of the nuget package. Preferably the latest version available.
1.28.1-dev.2183 is unlisted
The following style :
<Style TargetType="Controls:Icon">
<Style.Setters>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Controls:Icon">
<TextBlock Text="123" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style.Setters>
</Style>
Is not interpreted properly by the parser, leading to an empty style.
Found in Uno.UI 1.31.0-dev.8
Write the style as follows:
<Style TargetType="Controls:Icon">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Controls:Icon">
<TextBlock Text="123" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
The default style for UWP password box is incorrect, making the password box not appear.
Use the following style Style="{StaticResource XamlDefaultPasswordBox}"
in a PasswordBox.
Thanks very much for uno support for webassembly. I am a UWP developer and I am now anxious to distribute some of my features in a browser.
But webassembly currently has a fatal problem: it starts to run too slowly. The first time you want to download up to 10M of data from the server.
I also noticed a project Ooui: https://github.com/praeclarum/Ooui , which provides another way to run XAML and run Xamarin.Forms on a server. In this way, the speed is very fast, really great! Reference: https://github.com/praeclarum/Ooui/wiki/Xamarin.Forms-on-the-Web .
But I'm a UWP developer and I'm not familiar with Xamarin.Forms. I hope uno can run on the server. Is this feasible?
I think there's a common issue with mono wasm and HttpClient. I get a ERROR: Operation is not supported on this platform.
Blazer was able to get it working but its not a normal HttpClient. HttpClient doesnt work with Ooui yet either. Is there a work around that Ive missed?
I am testing MvvmLight framework with Wasm project, but it seems like MvvmLight in Wasm is not yet fully supported. Issues I found:
using GalaSoft.MvvmLight
in c# code doesn't work (the project doesn't compile):After preparing .Net Standard 2.0 'MvvmLight' package, using GalaSoft.MvvmLight
can be used:
Is that mean, that Wasm project (which is targeted to .Net Standard 2.0) can work only with packages targeted to .Net Standard 2.0? Or maybe there is any configuration which would allow to add .Net Standard 1.0 package to Wasm .Net Standard 2.0 project?
Alternative working solution is not to install CommonServiceLocator in Wasm project and in Shared project use code like this:
#if __WASM__
using Microsoft.Practices.ServiceLocation;
#else
using CommonServiceLocator;
#endif
Error CS1002 ; expected
----------.Uni.Droid
--------------.Uni.Droid\obj\Debug\g\XamlCodeGenerator\HelpPage_9dfed88ee309a80cecea1fb464f2de5e.g.cs 303 N/A
the error happened when there is style property in the page tag that reference a static resource defined in app.xaml
so I think that the code generator generate wrong code if the page contains reference to a globally referenced style.
I know two styles to write a TemplateBinding with an attached DepdendencyProperty.
<CSControls:TextButton CSControls:Element.Text="firsttest">
<CSControls:TextButton.Template>
<ControlTemplate TargetType="Control">
<Border Background="Gray">
<TextBlock Text="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=(CSControls:Element.Text)}"
/>
</Border>
</ControlTemplate>
</CSControls:TextButton.Template>
</CSControls:TextButton>
AND
<CSControls:TextButton CSControls:Element.Text="secondtest">
<CSControls:TextButton.Template>
<ControlTemplate TargetType="Control">
<Border Background="Green">
<TextBlock Text="{TemplateBinding CSControls:Element.Text}" />
</Border>
</ControlTemplate>
</CSControls:TextButton.Template>
</CSControls:TextButton>
The first variant with the gray background works on android, the second one doesn't.
Which means that the text "firsttest" is visible the text "secondtest" is not.
Both variants are working on UWP head.
PS: Haven't tried WASM/iOS
UPDATE: I found out that only the missing bracket is the reasion
<TextBlock Text="{TemplateBinding (CSControls:Element.Text)}"/>
works and
<TextBlock Text="{TemplateBinding CSControls:Element.Text}"/>
doesn't
FlowDirection is not supported yet, when do you plan to add it to support RTL in all platforms.
For now, Uno is aliasing netstandard2.0 as a target for WebAssembly, but this cannot be a long term solution.
When the PR NuGet/NuGet.Client#2159 gets adjusted or merged, Uno will be able to retarget the Wasm projects.
15.5 and 15.7 agents are allowing the Xaml to be generated properly.
Probably an already fixed issue when the latest 15.7 VSTS hosted build agents will be released.
This issue makes the CI generated package fail to register default XAML files for WASM.
Because I need to get data from a Web server, it seems that many of the System.Net namespaces cannot be used in Wasm, such as System.Net.WebClient. (All code in UWP works)
When a SplitView control is hosted inside a templated Control, inner TemplateBindings in the Pane content are not applied properly.
The code below should show 42 twice.
<Style TargetType="uwp:MyControl">
<Setter Property="Tag" Value="42" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="uwp:MyControl">
<SplitView>
<SplitView.Pane>
<Grid>
<TextBox Text="{TemplatedParent Tag}" /> </Grid>
</SplitView.Pane>
<SplitView.Content>
<Grid>
<TextBox Text="{TemplatedParent Tag}" />
</Grid>
</SplitView.Content>
</SplitView>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Steps to reproduce:
<Page x:Class="UnoTest.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:UnoTest"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
DataContext="{Binding MainPageViewModelInstance, Source={StaticResource Locator}}">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
...
</Page>
public sealed partial class MainPage : Page
{
public MainPage()
{
InitializeComponent();
// DataContext = new MainPageViewModel();
}
}
Result:
6. Run UnoTest.UWP project (right click, start new instance) - clicking the button will increase the counter - correct behavior after change.
7. Run UnoTest.Web project (right click, start new instance) - clicking the button will not increase the counter - bad behavior after change.
Expected result:
After running UnoTest.Web app, clicking the button should increase the counter.
Can you list some names of real companies/apps built on the uno platform?
Also the history of the project wouldn't hurt :)
Here's the control code:
https://github.com/Microsoft/Windows-universal-samples/tree/win10-1709/Samples/XamlTreeView/cpp/Control
Here's the error during building:
Error Generation failed for aa. System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: The type {using:TreeViewControl}IntegerToIndentationConverter could not be found
at ad.a(ar A_0)
at ad.q(ar A_0)
at ad.a(IIndentedStringBuilder A_0, Boolean A_1, IEnumerable`1 A_2)
at ad.a(IIndentedStringBuilder A_0, Dictionary`2 A_1, Boolean A_2)
at ad.c()
at ad.e()
at z.a.e(ac A_0)
at System.Linq.Parallel.SelectQueryOperator`2.SelectQueryOperatorResults.GetElement(Int32 index)
at System.Linq.Parallel.QueryResults`1.get_Item(Int32 index)
at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)
at System.Linq.Parallel.StopAndGoSpoolingTask`2.SpoolingWork()
at System.Linq.Parallel.SpoolingTaskBase.Work()
at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
at System.Linq.Parallel.QueryTask.<>c.<.cctor>b__10_0(Object o)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose)
at System.Linq.Parallel.SpoolingTask.SpoolStopAndGo[TInputOutput,TIgnoreKey](QueryTaskGroupState groupState, PartitionedStream`2 partitions, SynchronousChannel`1[] channels, TaskScheduler taskScheduler)
at System.Linq.Parallel.DefaultMergeHelper`2.System.Linq.Parallel.IMergeHelper<TInputOutput>.Execute()
at System.Linq.Parallel.MergeExecutor`1.Execute()
at System.Linq.Parallel.MergeExecutor`1.Execute[TKey](PartitionedStream`2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId)
at System.Linq.Parallel.PartitionedStreamMerger`1.Receive[TKey](PartitionedStream`2 partitionedStream)
at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
at System.Linq.Parallel.QueryOperator`1.GetOpenedEnumerator(Nullable`1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings)
at System.Linq.Parallel.QueryOpeningEnumerator`1.OpenQuery()
at System.Linq.Parallel.QueryOpeningEnumerator`1.MoveNext()
at System.Linq.ParallelEnumerable.ToList[TSource](ParallelQuery`1 source)
at z.c()
at aa.Execute(SourceGeneratorContext context)
at Uno.SourceGeneration.Host.SourceGeneratorHost.<>c__DisplayClass2_0.<Generate>b__13(ValueTuple`2 generatorDef) in C:\projects\uno-sourcegeneration\src\Uno.SourceGenerationHost.Shared\SourceGeneratorHost.cs:line 150
---> (Inner Exception #0) System.InvalidOperationException: The type {using:TreeViewControl}IntegerToIndentationConverter could not be found
at ad.a(ar A_0)
at ad.q(ar A_0)
at ad.a(IIndentedStringBuilder A_0, Boolean A_1, IEnumerable`1 A_2)
at ad.a(IIndentedStringBuilder A_0, Dictionary`2 A_1, Boolean A_2)
at ad.c()
at ad.e()
at z.a.e(ac A_0)
at System.Linq.Parallel.SelectQueryOperator`2.SelectQueryOperatorResults.GetElement(Int32 index)
at System.Linq.Parallel.QueryResults`1.get_Item(Int32 index)
at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)
at System.Linq.Parallel.StopAndGoSpoolingTask`2.SpoolingWork()
at System.Linq.Parallel.SpoolingTaskBase.Work()
at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
at System.Linq.Parallel.QueryTask.<>c.<.cctor>b__10_0(Object o)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---
DomainEditor.Wasm C:\Users\danielko\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\net45\Uno.SourceGenerationTasks.targets 94
how about a roadmap or milestones to show the future of the project?
MainPage.xaml:
<Page x:Class="UnoTest.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:UnoTest"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid Background="LightBlue">
<TextBlock x:Name="TextBlock"
Margin="20"
FontSize="50"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Text="{Binding NumberOfClicks}" />
</Grid>
<Button Grid.Row="1"
Grid.ColumnSpan="2"
FontSize="35"
Foreground="White"
Background="Green"
Content="Click Me !"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Command="{Binding ClickMeButtonCommand}" />
<ListView Grid.Row="0"
Grid.Column="1"
Background="Blue"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
ItemsSource="{Binding Numbers}">
<ListView.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding}"
Foreground="White"
FontSize="20"
FontWeight="Bold" />
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>
</Page>
MainPage.xaml.cs:
using UnoTest.Shared.ViewModels;
using Windows.UI.Xaml.Controls;
namespace UnoTest
{
public sealed partial class MainPage : Page
{
public MainPage()
{
InitializeComponent();
DataContext = new MainPageViewModel();
}
}
}
MainPageViewModel.cs:
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Windows.Input;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
namespace UnoTest.Shared.ViewModels
{
#if __WASM__
[Bindable(true)]
#endif
public class MainPageViewModel : ViewModelBase
{
private int numberOfClicks = 0;
private ObservableCollection<int> numbers = new ObservableCollection<int>();
public MainPageViewModel()
{
ClickMeButtonCommand = new RelayCommand(OnClickMeButton);
}
public ICommand ClickMeButtonCommand { get; }
public int NumberOfClicks
{
get => numberOfClicks;
set
{
numberOfClicks = value;
RaisePropertyChanged(nameof(NumberOfClicks));
}
}
public ObservableCollection<int> Numbers => numbers;
private void OnClickMeButton()
{
NumberOfClicks += 1;
Numbers.Add(NumberOfClicks);
}
}
}
Result:
Eeach click adds a new element (int number) to the list which takes more and more time. After about only 10 clicks (only ten numbers on the list) adding next element (next click) takes about 1-2 seconds.
Additionally FireFox console shows many errors:
MvvmLight compiled to .Net Standard 2.0 has been used.
MediaElement (or MediaPlayer+MediaPlayerElement) is a difficult control to implement (much more than other, because of SMTC) but without it, Uno seems unusable to me because all my works use MediaElement.
The solution has to work on everyplatform (even WASM with
I have tried to port my one of my existing UWP app to Uno platform but I couldn't enable UWP toolkit on any of the project
in wasm project it says:
NU1202: Package Microsoft.Toolkit.Uwp.UI.Controls 2.2.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Toolkit.Uwp.UI.Controls 2.2.0 supports: uap10.0 (UAP,Version=v10.0)
and in IOS:
NU1202: Package Microsoft.Toolkit.Uwp 3.0.0 is not compatible with xamarinios10 (Xamarin.iOS,Version=v1.0). Package Microsoft.Toolkit.Uwp 3.0.0 supports: uap10.0 (UAP,Version=v10.0)
Imported over from unoplatform/Uno.QuickStart#11
Elsmish.XF is tied explicitly to the Xamarin.Forms model, but it's definitely doeable to make something similar.
Here's an existing generator in C#: https://github.com/jeromelaban/Uno.ImmutableUI
There could be performance issues based on the larger number of properties (X.F has a lot less properties available on controls).
In the iOS ListView, some listview items are measured incorrectly, leading to an invalid inner size and truncated content.
This regression is linked to an animation refactoring for iOS UIElement implementation.
Fuse's Uno is a recently open-sourced C# cross-platform API, providing a C# dialect that cross-compiles to both C++11 with ref-counting instead of GC (iOS and Android), but also cross-compiles to CI targeting .NET. As far as I can tell, this Uno is also a recently open-sourced C# cross-platform API, but is not a compiler itself, but rather a framework for UWP applications to natively run/be developed for iOS, Android, .NET, and the web?
I wasn't sure if the two efforts were independent or not, and it was a little confusing at first. I brought it up here in case I might not be the only one, and maybe it'd merit a small blurb in the README or such.
Or maybe the two projects could join forces and we could have Uno running atop Uno. :)
I'm trying to add Uno to an existing solution.
I "logically" created a Uno folder in the solution. I added MyApp.Uno.UPW, MyApp.Uno.iOS and MyApp.Uno.Shared projects with the proper nuget packages and references.
When I build the iOS project I had an error like:
The type or namespace name 'UI' does not exist in the namespace 'MyApp.Uno' (are you missing an assembly reference?)
I had to rename my folder to UnoApp and projects to MyApp.UnoApp.UWP etc to get it to compile.
Would really like that one to work, I think its used a lot, especially since the Windows Template kit uses it now too.
I know this is because you've mentioned only porting part of the controls on Reddit , thought I'd mention it here too.
The alternative also doesn't work (hamburger view from UWP toolkit)
(I mean it doesn't compile)
android build fails showing the following error:
Error: Originally defined here. ...\res\drawable-mdpi-v4\square44x44logo.altform-unplated_targetsize-16.png
Error : Resource entry square44x44logo is already defined. ...\drawable-mdpi-v4\square44x44logo.altform-unplated_targetsize-256.png
these 2 error show multiple times for all square44x44logo images
development environment: windows 10 pro 17134, VS community 15.7.1
Hello,
I have a lot of errors when building the Uno.UI solution :
1>------ Rebuild All started: Project: Uno.Foundation, Configuration: Debug Any CPU ------
2>------ Rebuild All started: Project: Uno.Xaml (Uno.Xaml\Uno.Xaml), Configuration: Debug Any CPU ------
3>------ Rebuild All started: Project: T4Generator, Configuration: Debug Any CPU ------
4>------ Rebuild All started: Project: Uno.UI.BindingHelper.Android, Configuration: Debug Any CPU ------
5>------ Rebuild All started: Project: UnoSolutionTemplate.Wizard, Configuration: Debug Any CPU ------
6>------ Rebuild All started: Project: Uno.Analyzers, Configuration: Debug Any CPU ------
7>------ Rebuild All started: Project: UnoSolutionTemplate, Configuration: Debug Any CPU ------
8>------ Rebuild All started: Project: Uno.UI.Tasks, Configuration: Debug Any CPU ------
9>------ Rebuild All started: Project: Uno.UWPSyncGenerator.Reference, Configuration: Debug Any CPU ------
10>------ Rebuild All started: Project: UWPUsageStatsGenerator, Configuration: Debug Any CPU ------
11>------ Rebuild All started: Project: System.Xaml.Tests.MS, Configuration: Debug Any CPU ------
12>------ Rebuild All started: Project: Uno.UWPSyncGenerator, Configuration: Debug Any CPU ------
5> UnoSolutionTemplate.Wizard -> D:\Perso\Uno\src\SolutionTemplate\UnoSolutionTemplate.Wizard\bin\Debug\UnoSolutionTemplate.Wizard.dll
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3274: The primary reference "Microsoft.VisualStudio.CoreUtility" could not be resolved because it was built against the ".NETFramework,Version=v4.6" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5.2".
13>------ Rebuild All started: Project: ResourceConverter, Configuration: Debug Any CPU ------
10> UWPUsageStatsGenerator -> D:\Perso\Uno\src\UWPUsageStatsGenerator\bin\Debug\UWPUsageStatsGenerator.exe
3> T4Generator -> D:\Perso\Uno\src\T4Generator\bin\Debug\T4Generator.exe
14>------ Rebuild All started: Project: UnoSolutionTemplate.VISX, Configuration: Debug Any CPU ------
6> Uno.Analyzers -> D:\Perso\Uno\src\Uno.Analyzers\bin\Debug\Uno.Analyzers.dll
15>------ Rebuild All started: Project: Uno.UI.AssemblyComparer, Configuration: Debug Any CPU ------
13> ResourceConverter -> D:\Perso\Uno\src\ResourceConverter\bin\Debug\ResourceConverter.exe
16>------ Skipped Rebuild All: Project: Uno.UI.Build, Configuration: Debug Any CPU ------
16>Project not selected to build for this solution configuration
15> Uno.UI.AssemblyComparer -> D:\Perso\Uno\src\Uno.UI.AssemblyComparer\bin\Debug\Uno.UI.AssemblyComparer.exe
17>------ Rebuild All started: Project: Uno.Analyzers.Tests, Configuration: Debug Any CPU ------
11>System.Xaml.Tests.MS -> D:\Perso\Uno\src\SourceGenerators\System.Xaml.Tests.MS\bin\Debug\net46\System.Xaml.Tests.MS.dll
12>Generator.cs(158,13,158,24): warning CS0649: Field 'Generator.PlatformSymbols.MacOSSymbol' is never assigned to, and will always have its default value
12>Uno.UWPSyncGenerator -> D:\Perso\Uno\src\Uno.UWPSyncGenerator\bin\Debug\net46\Uno.UWPSyncGenerator.exe
12>Done building project "Uno.UWPSyncGenerator.csproj".
9> Uno.UWPSyncGenerator.Reference -> D:\Perso\Uno\src\Uno.UWPSyncGenerator.Reference\bin\Debug\Uno.UWPSyncGenerator.Reference.dll
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.Messaging.targets(41,3): warning VSX1000: No Address and User has been specified in order to establish a connection to a Mac Server, so only the main assembly was compiled for project 'Uno.Foundation'. Connect to a Mac Server and try again to build the full application.
1>Done building project "Uno.Foundation.csproj".
1>Building target framework: net46
1>Building target framework: xamarinios10
1>Uno.Foundation -> D:\Perso\Uno\src\Uno.Foundation\bin\Debug\net46\Uno.Foundation.dll
1>Building target framework: MonoAndroid80
4>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.Messaging.targets(41,3): warning VSX1000: No Address and User has been specified in order to establish a connection to a Mac Server, so only the main assembly was compiled for project 'Uno.UI.BindingHelper.Android'. Connect to a Mac Server and try again to build the full application.
4>Done building project "Uno.UI.BindingHelper.Android.csproj".
4>Building target framework: netstandard2.0
4>Building target framework: net46
4>Building target framework: MonoAndroid80
4>Uno.UI.BindingHelper.Android -> D:\Perso\Uno\src\Uno.UI.BindingHelper.Android\bin\Debug\net46\Uno.UI.BindingHelper.Android.dll
4>Building target framework: xamarinios10
4>Uno.UI.BindingHelper.Android -> D:\Perso\Uno\src\Uno.UI.BindingHelper.Android\bin\Debug\netstandard2.0\Uno.UI.BindingHelper.Android.dll
4>Building target framework: MonoAndroid71
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.Messaging.targets(41,3): warning VSX1000: No Address and User has been specified in order to establish a connection to a Mac Server, so only the main assembly was compiled for project 'Uno.Xaml'. Connect to a Mac Server and try again to build the full application.
2>Done building project "Uno.Xaml.csproj".
2>Uno.Xaml -> D:\Perso\Uno\src\SourceGenerators\System.Xaml\bin\Debug\netstandard2.0\Uno.Xaml.dll
4>Uno.UI.BindingHelper.Android -> D:\Perso\Uno\src\Uno.UI.BindingHelper.Android\bin\Debug\xamarinios10\Uno.UI.BindingHelper.Android.dll
4>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.Messaging.targets(82,3): warning : There is no current Build Connection to get. A new connection needs to be created first
4>Done building project "Uno.UI.BindingHelper.Android.csproj".
4>Compiling java ( for MonoAndroid80): "C:\Program Files\Java\jdk1.8.0_172\bin\javac.exe" -g -source 1.8 -d .\obj\Debug\monoandroid80\unoclasses -target 1.8 -J-Dfile.encoding=UTF8 -classpath "%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\MonoAndroid\v8.0\mono.android.jar;obj\Debug\monoandroid80\library_projects\Xamarin.Android.Support.Annotations\library_project_imports\support-annotations.jar;obj\Debug\monoandroid80\lp\10\jl\bin\classes.jar;obj\Debug\monoandroid80\lp\11\jl\bin\classes.jar;obj\Debug\monoandroid80\lp\3\jl\bin\classes.jar;obj\Debug\monoandroid80\lp\5\jl\bin\classes.jar;obj\Debug\monoandroid80\lp\6\jl\bin\classes.jar;obj\Debug\monoandroid80\lp\7\jl\bin\classes.jar;obj\Debug\monoandroid80\lp\8\jl\bin\classes.jar;obj\Debug\monoandroid80\lp\9\jl\bin\classes.jar" -bootclasspath "C:\Users\lord_\AppData\Local\Android\Sdk\platforms\android-26\android.jar" -encoding UTF-8 .\Uno\UI*.java
17>Uno.Analyzers.Tests -> D:\Perso\Uno\src\Build\Tests\bin\Debug_AnyCPU\net46\Uno.Analyzers.Tests.dll
4>Compiling java ( for MonoAndroid71): "C:\Program Files\Java\jdk1.8.0_172\bin\javac.exe" -g -source 1.8 -d .\obj\Debug\monoandroid71\unoclasses -target 1.8 -J-Dfile.encoding=UTF8 -classpath "%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\MonoAndroid\v7.1\mono.android.jar;obj\Debug\monoandroid71\library_projects\Xamarin.Android.Support.Annotations\library_project_imports\support-annotations.jar;obj\Debug\monoandroid71\lp\2\jl\classes.jar;obj\Debug\monoandroid71\lp\3\jl\classes.jar;obj\Debug\monoandroid71\lp\4\jl\classes.jar;obj\Debug\monoandroid71\lp\5\jl\classes.jar;obj\Debug\monoandroid71\lp\6\jl\classes.jar;obj\Debug\monoandroid71\lp\7\jl\classes.jar;obj\Debug\monoandroid71\lp\8\jl\classes.jar" -bootclasspath "C:\Users\lord_\AppData\Local\Android\Sdk\platforms\android-25\android.jar" -encoding UTF-8 .\Uno\UI*.java
2>Uno.Xaml -> D:\Perso\Uno\src\SourceGenerators\System.Xaml\bin\Debug\net46\Uno.Xaml.dll
1>Building target framework: netstandard2.0
2>Uno.Xaml -> D:\Perso\Uno\src\SourceGenerators\System.Xaml\bin\Debug\monoandroid80\Uno.Xaml.dll
4>Note: Uno\UI\UnoTwoDScrollView.java uses or overrides a deprecated API.
4>Note: Recompile with -Xlint:deprecation for details.
8> Uno.UI.Tasks -> D:\Perso\Uno\src\SourceGenerators\Uno.UI.Tasks\bin\Debug\Uno.UI.Tasks.dll
4>manifeste ajoutÚ
4>ajout : Uno/(entrÚe = 0) (sortie = 0)(stockage : 0 %)
4>ajout : Uno/UI/(entrÚe = 0) (sortie = 0)(stockage : 0 %)
4>ajout : Uno/UI/TextPaintSpan.class(entrÚe = 1517) (sortie = 816)(compression : 46 %)
4>ajout : Uno/UI/UnoGestureDetector$1.class(entrÚe = 2077) (sortie = 990)(compression : 52 %)
4>ajout : Uno/UI/UnoGestureDetector$2.class(entrÚe = 1572) (sortie = 785)(compression : 50 %)
4>ajout : Uno/UI/UnoGestureDetector.class(entrÚe = 6314) (sortie = 2270)(compression : 64 %)
4>ajout : Uno/UI/UnoRecyclerView.class(entrÚe = 1854) (sortie = 900)(compression : 51 %)
4>ajout : Uno/UI/UnoScrollViewScaleGestureDetector$UnoScaleGestureListener.class(entrÚe = 2693) (sortie = 1314)(compression : 51 %)
4>ajout : Uno/UI/UnoScrollViewScaleGestureDetector.class(entrÚe = 1210) (sortie = 492)(compression : 59 %)
4>ajout : Uno/UI/UnoSpannableString.class(entrÚe = 1031) (sortie = 522)(compression : 49 %)
4>ajout : Uno/UI/UnoSpannableStringBuilder.class(entrÚe = 721) (sortie = 408)(compression : 43 %)
4>ajout : Uno/UI/UnoStaticLayoutBuilder.class(entrÚe = 3905) (sortie = 1881)(compression : 51 %)
4>ajout : Uno/UI/UnoTwoDScrollView.class(entrÚe = 25894) (sortie = 12705)(compression : 50 %)
4>ajout : Uno/UI/UnoViewGroup$1.class(entrÚe = 1217) (sortie = 625)(compression : 48 %)
4>ajout : Uno/UI/UnoViewGroup.class(entrÚe = 12720) (sortie = 5874)(compression : 53 %)
4>ajout : Uno/UI/UnoViewParent.class(entrÚe = 226) (sortie = 167)(compression : 26 %)
4>manifeste ajoutÚ
4>ajout : Uno/(entrÚe = 0) (sortie = 0)(stockage : 0 %)
4>ajout : Uno/UI/(entrÚe = 0) (sortie = 0)(stockage : 0 %)
4>ajout : Uno/UI/TextPaintSpan.class(entrÚe = 1517) (sortie = 816)(compression : 46 %)
4>ajout : Uno/UI/UnoGestureDetector$1.class(entrÚe = 2077) (sortie = 990)(compression : 52 %)
4>ajout : Uno/UI/UnoGestureDetector$2.class(entrÚe = 1572) (sortie = 785)(compression : 50 %)
4>ajout : Uno/UI/UnoGestureDetector.class(entrÚe = 6314) (sortie = 2270)(compression : 64 %)
4>ajout : Uno/UI/UnoRecyclerView.class(entrÚe = 1854) (sortie = 900)(compression : 51 %)
4>ajout : Uno/UI/UnoScrollViewScaleGestureDetector$UnoScaleGestureListener.class(entrÚe = 2693) (sortie = 1314)(compression : 51 %)
4>ajout : Uno/UI/UnoScrollViewScaleGestureDetector.class(entrÚe = 1210) (sortie = 492)(compression : 59 %)
4>ajout : Uno/UI/UnoSpannableString.class(entrÚe = 1031) (sortie = 522)(compression : 49 %)
4>ajout : Uno/UI/UnoSpannableStringBuilder.class(entrÚe = 721) (sortie = 408)(compression : 43 %)
4>ajout : Uno/UI/UnoStaticLayoutBuilder.class(entrÚe = 3905) (sortie = 1881)(compression : 51 %)
4>ajout : Uno/UI/UnoTwoDScrollView.class(entrÚe = 25894) (sortie = 12705)(compression : 50 %)
4>ajout : Uno/UI/UnoViewGroup$1.class(entrÚe = 1217) (sortie = 625)(compression : 48 %)
4>ajout : Uno/UI/UnoViewGroup.class(entrÚe = 12720) (sortie = 5874)(compression : 53 %)
4>ajout : Uno/UI/UnoViewParent.class(entrÚe = 226) (sortie = 167)(compression : 26 %)
1>Uno.Foundation -> D:\Perso\Uno\src\Uno.Foundation\bin\Debug\xamarinios10\Uno.Foundation.dll
1>Uno.Foundation -> D:\Perso\Uno\src\Uno.Foundation\bin\Debug\monoandroid80\Uno.Foundation.dll
1>Uno.Foundation -> D:\Perso\Uno\src\Uno.Foundation\bin\Debug\netstandard2.0\Uno.Foundation.dll
2>Uno.Xaml -> D:\Perso\Uno\src\SourceGenerators\System.Xaml\bin\Debug\xamarinios10\Uno.Xaml.dll
18>------ Rebuild All started: Project: Uno, Configuration: Debug Any CPU ------
18>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.Messaging.targets(41,3): warning VSX1000: No Address and User has been specified in order to establish a connection to a Mac Server, so only the main assembly was compiled for project 'Uno'. Connect to a Mac Server and try again to build the full application.
14> UnoSolutionTemplate.VISX -> D:\Perso\Uno\src\SolutionTemplate\UnoSolutionTemplate.VISX\bin\Debug\UnoSolutionTemplate.vsix
18>Done building project "Uno.csproj".
18>Building target framework: net46
18>Building target framework: netstandard2.0
18>Building target framework: xamarinios10
18>Building target framework: MonoAndroid80
18>Uno -> D:\Perso\Uno\src\Uno.UWP\bin\Debug\netstandard2.0\Uno.dll
18>Uno -> D:\Perso\Uno\src\Uno.UWP\bin\Debug\xamarinios10\Uno.dll
18>Uno -> D:\Perso\Uno\src\Uno.UWP\bin\Debug\monoandroid80\Uno.dll
4>Uno.UI.BindingHelper.Android -> D:\Perso\Uno\src\Uno.UI.BindingHelper.Android\bin\Debug\monoandroid71\Uno.UI.BindingHelper.Android.dll
19>------ Rebuild All started: Project: Uno.UI.SourceGenerators, Configuration: Debug Any CPU ------
20>------ Rebuild All started: Project: Uno.Xaml.Tests, Configuration: Debug Any CPU ------
20>CSC : warning CS7033: Delay signing was specified and requires a public key, but no public key was specified
20>Test\System.Xaml\TestedTypes.cs(959,22,959,28): warning CS3003: Type of 'TypeOtherAssembly.Values' is not CLS-compliant
20>Test\System.Xaml\TestedTypes.cs(1031,36,1031,37): warning CS0162: Unreachable code detected
20>Test\System.Windows.Markup\ValueSerializerTest.cs(132,8,132,9): warning CS0219: The variable 'i' is assigned but its value is never used
20>Test\System.Xaml\XamlXmlWriterTest.cs(515,11,515,14): warning CS0219: The variable 'xml' is assigned but its value is never used
20>Test\System.Xaml\XamlXmlWriterTest.cs(565,11,565,14): warning CS0219: The variable 'xml' is assigned but its value is never used
20>Test\System.Xaml\XamlLanguageTest.cs(328,5,328,6): warning CS0642: Possible mistaken empty statement
20>Test\System.Xaml\XamlReaderTestBase.cs(662,8,662,14): warning CS0219: The variable 'defns3' is assigned but its value is never used
20>Test\System.Xaml\XamlReaderTestBase.cs(2489,5,2489,11): warning CS0162: Unreachable code detected
20>Test\System.Xaml\XamlTypeTest.cs(297,41,297,52): warning CS0067: The event 'XamlTypeTest.AttachableClass.SimpleEvent' is never used
20>Test\System.Xaml\TestedTypes.cs(469,23,469,26): warning CS0067: The event 'EventContainer.Run' is never used
20>Test\System.Windows.Markup\ReferenceTest.cs(134,30,134,63): warning CS0067: The event 'ReferenceTest.Resolver.OnNameScopeInitializationComplete' is never used
20>Test\System.Windows.Markup\StaticExtensionTest.cs(112,47,112,55): warning CS0067: The event 'StaticExtensionTest.FooEvent' is never used
20>Test\System.Xaml\TestedTypes.cs(929,16,929,24): warning CS0649: Field 'Configurations.isFrozen' is never assigned to, and will always have its default value false
20>Uno.Xaml.Tests -> D:\Perso\Uno\src\SourceGenerators\System.Xaml.Tests\bin\Debug\net46\Uno.Xaml.Tests.dll
20>Done building project "Uno.Xaml.Tests.csproj".
19>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Found conflicts between different versions of "Microsoft.Build.Tasks.Core" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
19>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Found conflicts between different versions of "Microsoft.Build" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
19>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Found conflicts between different versions of "Microsoft.Build.Framework" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
19>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Found conflicts between different versions of "Microsoft.Build.Utilities.Core" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
19> Uno.UI.SourceGenerators -> D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\bin\Debug\Uno.UI.SourceGenerators.dll
4>Uno.UI.BindingHelper.Android -> D:\Perso\Uno\src\Uno.UI.BindingHelper.Android\bin\Debug\monoandroid80\Uno.UI.BindingHelper.Android.dll
18>Uno -> D:\Perso\Uno\src\Uno.UWP\bin\Debug\net46\Uno.dll
21>------ Rebuild All started: Project: Uno.UI (Uno.UI\Uno.UI), Configuration: Debug Any CPU ------
21>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.Messaging.targets(41,3): warning VSX1000: No Address and User has been specified in order to establish a connection to a Mac Server, so only the main assembly was compiled for project 'Uno.UI'. Connect to a Mac Server and try again to build the full application.
21>Done building project "Uno.UI.csproj".
21>Building target framework: net46
21>Building target framework: netstandard2.0
21>Building target framework: xamarinios10
21>Building target framework: MonoAndroid80
21>Mixins\iOS\FrameworkElementMixins.g.cs(1,1,1,22): error CS0116: A namespace cannot directly contain members such as fields or methods
21>Mixins\Android\FrameworkElementMixins.g.cs(1,1,1,22): error CS0116: A namespace cannot directly contain members such as fields or methods
21>Mixins\DependencyPropertyMixins.g.cs(1,1,1,22): error CS0116: A namespace cannot directly contain members such as fields or methods
21>Done building project "Uno.UI.csproj" -- FAILED.
21>Mixins\iOS\FrameworkElementMixins.g.cs(1,1,1,22): error CS0116: A namespace cannot directly contain members such as fields or methods
21>Mixins\Android\FrameworkElementMixins.g.cs(1,1,1,22): error CS0116: A namespace cannot directly contain members such as fields or methods
21>Mixins\DependencyPropertyMixins.g.cs(1,1,1,22): error CS0116: A namespace cannot directly contain members such as fields or methods
21>Done building project "Uno.UI.csproj" -- FAILED.
21>Mixins\Android\FrameworkElementMixins.g.cs(1,1,1,22): error CS0116: A namespace cannot directly contain members such as fields or methods
21>Mixins\DependencyPropertyMixins.g.cs(1,1,1,22): error CS0116: A namespace cannot directly contain members such as fields or methods
21>Mixins\iOS\FrameworkElementMixins.g.cs(1,1,1,22): error CS0116: A namespace cannot directly contain members such as fields or methods
21>Done building project "Uno.UI.csproj" -- FAILED.
21>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : Generation failed for Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator. System.Exception: Unable to convert Transparent for Value with type Android.Graphics.Drawables.Drawable
21>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildLiteralValue(INamedTypeSymbol propertyType, String memberValue, XamlMemberDefinition owner, String memberName, String objectUid) in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:line 2492
21>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildLiteralValue(XamlMemberDefinition member, INamedTypeSymbol propertyType, XamlMemberDefinition owner, String objectUid) in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:line 2540
21>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildPropertySetter(IIndentedStringBuilder writer, String fullTargetType, String lineEnding, String property, XamlMemberDefinition valueNode, String targetInstance) in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:line 1041
21>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildInlineStyle(IIndentedStringBuilder writer, XamlObjectDefinition style) in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:line 981
21>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.<>c__DisplayClass66_0.b__0() in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:line 934
21>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildSingleTimeInitializer(IIndentedStringBuilder writer, String propertyType, String propertyName, Action propertyBodyBuilder, Boolean isStatic) in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:line 707
21>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildStyle(IIndentedStringBuilder writer, KeyValuePair2 resource) in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:line 932 21>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildKeyedStaticResources(IIndentedStringBuilder writer, Boolean isGlobalResources, IEnumerable
1 keyedResources) in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:line 845
21>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildStaticResources(IIndentedStringBuilder writer, Dictionary2 resources, Boolean isGlobalResources) in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:line 738 21>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildResourceDictionary(IIndentedStringBuilder writer, XamlObjectDefinition topLevelControl) in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:line 567 21>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.InnerGenerateFile() in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:line 223 21>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.GenerateFile() in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:line 174 21>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGeneration.<>c__DisplayClass19_0.<Generate>b__0(XamlFileDefinition file) in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlCodeGeneration.cs:line 146 21>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at System.Linq.Enumerable.WhereSelectArrayIterator
2.MoveNext()
21>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at System.Collections.Generic.List1..ctor(IEnumerable
1 collection)
21>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) 21>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGeneration.Generate() in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlCodeGeneration.cs:line 142 21>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator.Execute(SourceGeneratorContext context) in D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlCodeGenerator.cs:line 20 21>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\MonoAndroid\Uno.SourceGenerationTasks.targets(94,3): error : at Uno.SourceGeneration.Host.SourceGeneratorHost.<>c__DisplayClass2_0.<Generate>b__13(ValueTuple
2 generatorDef) in C:\projects\uno-sourcegeneration\src\Uno.SourceGenerationHost.Shared\SourceGeneratorHost.cs:line 150
21>Done building project "Uno.UI.csproj" -- FAILED.
22>------ Rebuild All started: Project: Uno.UI.Toolkit, Configuration: Debug Any CPU ------
23>------ Rebuild All started: Project: Uno.UI.Tests, Configuration: Debug Any CPU ------
24>------ Rebuild All started: Project: Uno.UI.Wasm, Configuration: Debug Any CPU ------
22>D:\Perso\Uno\src\Uno.UI.Toolkit\Uno.UI.Toolkit.csproj : warning NU1603: runtime.native.System.IO.Compression 4.1.0 depends on runtime.win10-arm64.runtime.native.System.IO.Compression (>= 4.3.0) but runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.0 was not found. An approximate best match of runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.1 was resolved.
22>D:\Perso\Uno\src\Uno.UI.Toolkit\Uno.UI.Toolkit.csproj : warning NU1603: runtime.native.System.IO.Compression 4.3.0 depends on runtime.win10-arm64.runtime.native.System.IO.Compression (>= 4.3.0) but runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.0 was not found. An approximate best match of runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.1 was resolved.
22>D:\Perso\Uno\src\Uno.UI.Toolkit\Uno.UI.Toolkit.csproj : warning NU1603: runtime.native.System.IO.Compression 4.1.0 depends on runtime.win10-arm64.runtime.native.System.IO.Compression (>= 4.3.0) but runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.0 was not found. An approximate best match of runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.1 was resolved.
22>D:\Perso\Uno\src\Uno.UI.Toolkit\Uno.UI.Toolkit.csproj : warning NU1603: runtime.native.System.IO.Compression 4.3.0 depends on runtime.win10-arm64.runtime.native.System.IO.Compression (>= 4.3.0) but runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.0 was not found. An approximate best match of runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.1 was resolved.
22>D:\Perso\Uno\src\Uno.UI.Toolkit\Uno.UI.Toolkit.csproj : warning NU1603: runtime.native.System.IO.Compression 4.1.0 depends on runtime.win10-arm64.runtime.native.System.IO.Compression (>= 4.3.0) but runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.0 was not found. An approximate best match of runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.1 was resolved.
22>D:\Perso\Uno\src\Uno.UI.Toolkit\Uno.UI.Toolkit.csproj : warning NU1603: runtime.native.System.IO.Compression 4.3.0 depends on runtime.win10-arm64.runtime.native.System.IO.Compression (>= 4.3.0) but runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.0 was not found. An approximate best match of runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.1 was resolved.
22>D:\Perso\Uno\src\Uno.UI.Toolkit\Uno.UI.Toolkit.csproj : warning NU1603: runtime.native.System.IO.Compression 4.1.0 depends on runtime.win10-arm64.runtime.native.System.IO.Compression (>= 4.3.0) but runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.0 was not found. An approximate best match of runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.1 was resolved.
22>D:\Perso\Uno\src\Uno.UI.Toolkit\Uno.UI.Toolkit.csproj : warning NU1603: runtime.native.System.IO.Compression 4.3.0 depends on runtime.win10-arm64.runtime.native.System.IO.Compression (>= 4.3.0) but runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.0 was not found. An approximate best match of runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.1 was resolved.
22>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.Messaging.targets(41,3): warning VSX1000: No Address and User has been specified in order to establish a connection to a Mac Server, so only the main assembly was compiled for project 'Uno.UI.Toolkit'. Connect to a Mac Server and try again to build the full application.
22>Done building project "Uno.UI.Toolkit.csproj".
22>Done building project "Uno.UI.Toolkit.csproj".
22>Building target framework: netstandard2.0
22>Building target framework: uap10.0
22>Building target framework: xamarinios10
22>Building target framework: MonoAndroid80
24>Building target framework: netstandard2.0
24>CSC : error CS0006: Metadata file 'D:\Perso\Uno\src\Uno.UI\bin\Debug\netstandard2.0\Uno.UI.dll' could not be found
24>Done building project "Uno.UI.Wasm.csproj" -- FAILED.
25>------ Rebuild All started: Project: Uno.UI.Wasm.Shell, Configuration: Debug Any CPU ------
22>CSC : error CS0006: Metadata file 'D:\Perso\Uno\src\Uno.UI\bin\Debug\netstandard2.0\Uno.UI.dll' could not be found
22>Done building project "Uno.UI.Toolkit.csproj" -- FAILED.
22>Uno.UI.Toolkit -> D:\Perso\Uno\src\Uno.UI.Toolkit\bin\Debug\uap10.0\Uno.UI.Toolkit.dll
25>CSC : error CS0006: Metadata file 'D:\Perso\Uno\src\Uno.UI\bin\Debug\netstandard2.0\Uno.UI.dll' could not be found
25>CSC : error CS0006: Metadata file 'D:\Perso\Uno\src\Uno.UI.Wasm\bin\Debug\netstandard2.0\Uno.UI.Wasm.dll' could not be found
25>Done building project "Uno.UI.Wasm.Shell.csproj" -- FAILED.
23>CSC : error CS0006: Metadata file 'D:\Perso\Uno\src\Uno.UI\bin\Debug\net46\Uno.UI.dll' could not be found
23>Done building project "Uno.UI.Tests.csproj" -- FAILED.
26>------ Rebuild All started: Project: Uno.UI.Tests.Performance, Configuration: Debug Any CPU ------
22>CSC : error CS0006: Metadata file 'D:\Perso\Uno\src\Uno.UI\bin\Debug\xamarinios10\Uno.UI.dll' could not be found
22>Done building project "Uno.UI.Toolkit.csproj" -- FAILED.
27>------ Rebuild All started: Project: XamlGenerationTests.Core, Configuration: Debug Any CPU ------
27>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.Messaging.targets(41,3): warning VSX1000: No Address and User has been specified in order to establish a connection to a Mac Server, so only the main assembly was compiled for project 'XamlGenerationTests.Core'. Connect to a Mac Server and try again to build the full application.
27>Done building project "XamlGenerationTests.Core.csproj".
26>CSC : error CS0006: Metadata file 'D:\Perso\Uno\src\Uno.UI\bin\Debug\net46\Uno.UI.dll' could not be found
26>CSC : error CS0006: Metadata file 'D:\Perso\Uno\src\Uno.UI.Tests\bin\AnyCPU\Debug\net46\Uno.UI.Tests.dll' could not be found
26>Done building project "Uno.UI.Tests.Performance.csproj" -- FAILED.
27>CSC : error CS0006: Metadata file 'D:\Perso\Uno\src\Uno.UI\bin\Debug\xamarinios10\Uno.UI.dll' could not be found
27>CSC : error CS0006: Metadata file 'D:\Perso\Uno\src\Uno.UI.Toolkit\bin\Debug\xamarinios10\Uno.UI.Toolkit.dll' could not be found
27>Done building project "XamlGenerationTests.Core.csproj" -- FAILED.
28>------ Rebuild All started: Project: XamlGenerationTests, Configuration: Debug Any CPU ------
28>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.Messaging.targets(41,3): warning VSX1000: No Address and User has been specified in order to establish a connection to a Mac Server, so only the main assembly was compiled for project 'XamlGenerationTests'. Connect to a Mac Server and try again to build the full application.
28>Done building project "XamlGenerationTests.csproj".
28>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : Generation failed for Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator. System.Exception: Unable to convert Red for Value with type System.nint
28>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildLiteralValue(INamedTypeSymbol propertyType, String memberValue, XamlMemberDefinition owner, String memberName, String objectUid) dans D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:ligne 2492
28>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildLiteralValue(XamlMemberDefinition member, INamedTypeSymbol propertyType, XamlMemberDefinition owner, String objectUid) dans D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:ligne 2540
28>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildPropertySetter(IIndentedStringBuilder writer, String fullTargetType, String lineEnding, String property, XamlMemberDefinition valueNode, String targetInstance) dans D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:ligne 1041
28>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildInlineStyle(IIndentedStringBuilder writer, XamlObjectDefinition style) dans D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:ligne 981
28>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.<>c__DisplayClass66_0.b__0() dans D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:ligne 934
28>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildSingleTimeInitializer(IIndentedStringBuilder writer, String propertyType, String propertyName, Action propertyBodyBuilder, Boolean isStatic) dans D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:ligne 707
28>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildStyle(IIndentedStringBuilder writer, KeyValuePair2 resource) dans D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:ligne 932 28>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildKeyedStaticResources(IIndentedStringBuilder writer, Boolean isGlobalResources, IEnumerable
1 keyedResources) dans D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:ligne 845
28>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.BuildStaticResources(IIndentedStringBuilder writer, Dictionary2 resources, Boolean isGlobalResources) dans D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:ligne 738 28>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.InnerGenerateFile() dans D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:ligne 285 28>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.UI.SourceGenerators.XamlGenerator.XamlFileGenerator.GenerateFile() dans D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlFileGenerator.cs:ligne 174 28>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGeneration.<>c__DisplayClass19_0.<Generate>b__0(XamlFileDefinition file) dans D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlCodeGeneration.cs:ligne 146 28>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à System.Linq.Enumerable.WhereSelectArrayIterator
2.MoveNext()
28>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à System.Collections.Generic.List1..ctor(IEnumerable
1 collection)
28>C:\Users\lord_.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) 28>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGeneration.Generate() dans D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlCodeGeneration.cs:ligne 142 28>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator.Execute(SourceGeneratorContext context) dans D:\Perso\Uno\src\SourceGenerators\Uno.UI.SourceGenerators\XamlGenerator\XamlCodeGenerator.cs:ligne 20 28>C:\Users\lord_\.nuget\packages\uno.sourcegenerationtasks\1.22.0-dev.32\build\Xamarin.iOS10\Uno.SourceGenerationTasks.targets(94,3): error : à Uno.SourceGeneration.Host.SourceGeneratorHost.<>c__DisplayClass2_0.<Generate>b__13(ValueTuple
2 generatorDef) dans C:\projects\uno-sourcegeneration\src\Uno.SourceGenerationHost.Shared\SourceGeneratorHost.cs:ligne 150
28>Done building project "XamlGenerationTests.csproj" -- FAILED.
========== Rebuild All: 19 succeeded, 8 failed, 1 skipped ==========
MainPage.xaml:
<Page x:Class="UnoTest.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:UnoTest"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid Grid.Row="0"
Background="LightBlue">
<TextBlock x:Name="TextBlock"
Margin="20"
FontSize="50"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Text="{Binding NumberOfClicks}" />
</Grid>
<Button Grid.Row="1"
FontSize="35"
Foreground="White"
Background="Green"
Content="Click Me !"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Command="{Binding ClickMeButtonCommand}" />
</Grid>
</Page>
MainPage.xaml.cs:
using UnoTest.Shared.ViewModels;
using Windows.UI.Xaml.Controls;
namespace UnoTest
{
public sealed partial class MainPage : Page
{
public MainPage()
{
InitializeComponent();
DataContext = new MainPageViewModel();
}
}
}
MainPageViewModel.cs:
using System.ComponentModel;
using System.Windows.Input;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
namespace UnoTest.Shared.ViewModels
{
#if __WASM__
[Bindable(true)]
#endif
public class MainPageViewModel : ViewModelBase
{
private int numberOfClicks = 0;
public MainPageViewModel()
{
ClickMeButtonCommand = new RelayCommand(() => NumberOfClicks += 1);
}
public ICommand ClickMeButtonCommand { get; }
public int NumberOfClicks
{
get => numberOfClicks;
set
{
numberOfClicks = value;
RaisePropertyChanged(nameof(NumberOfClicks));
}
}
}
}
After about 50 clicks, FireFox console shows error:
MvvmLight compiled to .Net Standard 2.0 has been used.
The current WebAssembly target is currently using netstandard 2.0 for deployment.
This is fine for now as Uno does not support .NET Standard 2.0 as a platform target, so wasm specific code is using NETSTANDARD2_0 to target it.
This should be addressed somehow by NuGet/NuGet.Client#2159.
Update: NuGet/Home#8186
Targeting Android 4.1 with a default solution created with Uno's solution template results in a runtime crash on start
Application runs
Runtime crash :
E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NoSuchMethodError: no method with name='isAttachedToWindow' signature='()Z' in class LUno/UI/UnoViewGroup;
at md5bf4da100b2dbb022d895d9bb2c38dfa6.NativeApplication_ActivityCallbacks.n_onActivityStarted(Native Method)
at md5bf4da100b2dbb022d895d9bb2c38dfa6.NativeApplication_ActivityCallbacks.onActivityStarted(NativeApplication_ActivityCallbacks.java:83)
at android.app.Application.dispatchActivityStarted(Application.java:164)
at android.app.Activity.onStart(Activity.java:1032)
at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:552)
at android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:177)
at md567cff875f28d20379ac19e960a3af0b6.BaseActivity.n_onStart(Native Method)
at md567cff875f28d20379ac19e960a3af0b6.BaseActivity.onStart(BaseActivity.java:609)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1163)
at android.app.Activity.performStart(Activity.java:5018)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2032)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
at android.app.ActivityThread.access$600(ActivityThread.java:130)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
I have a small project that I based on the Uno.Playground project. If I have the .Net server as the startup project, then make a change in a xaml file in the shared library, do a 'Ctrl-F5' to start without debugging, then the wasm project doesn't get rebuilt. Even just doing a build on that project results in an 'up to date' notification. I have to delete the bin directory in order to force a rebuild.
If I have the UWP project set as the startup project it gets rebuilt after a xaml file change
Example code:
<ToggleButton Grid.Row="4" x:Name="buttonShowSettings" Width="236" Height="50" VerticalAlignment="Top" HorizontalContentAlignment="Left" BorderBrush="Transparent" BorderThickness="0,1,1,1" Padding="0" Background="#FFF3F3F3" Visibility="Visible"> <StackPanel Orientation="Horizontal"> <Grid Width="50" Height="50"> <Path Stretch="Uniform" Fill="Gray" Width="20" Height="20" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5" Data="M16.000015,9.6000061C12.500012,9.6000061 9.5999844,12.5 9.5999844,16 9.5999844,19.5 12.500012,22.399994 16.000015,22.399994 19.500019,22.399994 22.400015,19.5 22.400015,16 22.400015,12.5 19.500019,9.6000061 16.000015,9.6000061z M14.199995,0L17.800005,0C18.199999,0,18.599993,0.29998779,18.599993,0.79998779L18.599993,4.7999878C19.900013,5.1000061,21.000019,5.6000061,22.099997,6.2999878L25.000023,3.3999939C25.099999,3.2999878 25.300011,3.1999817 25.500025,3.1999817 25.700007,3.1999817 25.900019,3.2999878 26.000025,3.3999939L28.600033,6C28.900021,6.2999878,28.900021,6.7999878,28.600033,7.1000061L25.700007,10C26.400019,11.100006,26.900019,12.299988,27.200007,13.5L31.20001,13.5C31.600037,13.5,31.999998,13.799988,31.999998,14.299988L31.999998,17.899994C31.999998,18.299988,31.700012,18.699982,31.20001,18.699982L27.200007,18.699982C26.900019,20,26.400019,21.100006,25.700007,22.199982L28.600033,25.100006C28.700009,25.199982 28.799984,25.399994 28.799984,25.600006 28.799984,25.799988 28.700009,26 28.600033,26.100006L26.000025,28.600006C25.900019,28.699982 25.700007,28.799988 25.500025,28.799988 25.300011,28.799988 25.099999,28.699982 25.000023,28.600006L22.099997,25.699982C21.000019,26.399994,19.800007,26.899994,18.599993,27.199982L18.599993,31.199982C18.599993,31.600006,18.300005,32,17.800005,32L14.199995,32C13.8,32,13.400006,31.699982,13.400006,31.199982L13.400006,27.199982C12.099987,26.899994,11.000011,26.399994,9.9000027,25.699982L7.0000064,28.600006C6.9000003,28.699982 6.6999881,28.799988 6.5000059,28.799988 6.2999937,28.799988 6.099981,28.699982 6.0000054,28.600006L3.3999967,26C3.0999784,25.699982,3.0999784,25.199982,3.3999967,24.899994L6.2999937,22C5.5999805,20.899994,5.0999801,19.699982,4.7999923,18.5L0.79998828,18.5C0.39999409,18.5,-1.933513E-07,18.199982,0,17.699982L0,14.100006C-1.933513E-07,13.699982,0.2999879,13.299988,0.79998828,13.299988L4.7999923,13.299988C5.0999801,12,5.5999805,10.899994,6.2999937,9.7999878L3.3999967,7C3.2999908,6.8999939 3.1999845,6.6999817 3.1999845,6.5 3.1999845,6.2999878 3.2999908,6.1000061 3.3999967,6L6.0000054,3.3999939C6.099981,3.2999878 6.2999937,3.1999817 6.5000059,3.1999817 6.6999881,3.1999817 6.9000003,3.2999878 7.0000064,3.3999939L9.9000027,6.2999878C11.000011,5.6000061,12.199993,5.1000061,13.400006,4.7999878L13.400006,0.79998779C13.400006,0.29998779,13.8,0,14.199995,0z"> <Path.RenderTransform> <TransformGroup> <TransformGroup.Children> <RotateTransform Angle="0" /> <ScaleTransform ScaleX="1" ScaleY="1" /> </TransformGroup.Children> </TransformGroup> </Path.RenderTransform> </Path> </Grid> <TextBlock Width="186" VerticalAlignment="Center" FontSize="14"><Run Text="Settings" /></TextBlock> </StackPanel> </ToggleButton>
This is caused by the fact that Uno.UI supports netstandard 2.0, and Windows SDK 16299 added support for it, making the Uno.UI source generator run on UWP.
As a workaround, in the UWP project, add the following line (such as this one):
<PackageReference Include="Uno.UI" ExcludeAssets="build">
<Version>1.29.1-aobfwasm.2834</Version>
</PackageReference>
To exclude the Uno.UI source generator from the build pipeline.
I put a
<WebView x:Name="wv1" Source="https://www.google.com/"></WebView>
and a
<Button x:Name="btn1" Click="Button_Click" >
<TextBlock>btn1</TextBlock>
</Button>
and have this code
private async void Button_Click(object sender, RoutedEventArgs e)
{
wv1.Navigate(new Uri("https://news.google.com"));
}
If I deploy it in Debug to my LENOVO K10a40 (Android 6.0 API 23) it works fine.
But If I deploy in Release to it, then this appears on the WebBrowser
net::ERR_CACHE_MISS
Code like this
public class ControlsDict : ResourceDictionary
{
public ControlsDict(UIColors colors)
{
this.MergedDictionaries.Add(new ButtonsDictionary(colors));
}
}
doesn't work at the moment, because the Add method is missing.
Please add the Add. ;)
If the default namespace of the main assembly contains an invalid character (e.g. a space), some generate an invalid C# name.
See this line
In assembly Uno.UI, Windows.UI.Xaml.DependencyObject
is defined as an interface. This is different from regular UWP, where DependencyObject
is a class being derived from interfaces IDependencyObject
and IDependencyObject2
.
I have classes derived from DependencyObject and this prevents code-sharing between UWP and my evaluation port.
Any specific reason for doing so and violating UWP naming conventions? In the first place I did not even realize this is just an interface in Uno...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.