microsoft / windows-appconsult-samples-desktopbridge Goto Github PK
View Code? Open in Web Editor NEWBuild, package, test apps using Desktop Bridge. Code for MSIX applications
License: MIT License
Build, package, test apps using Desktop Bridge. Code for MSIX applications
License: MIT License
I am trying to get https://github.com/microsoft/Windows-AppConsult-Samples-DesktopBridge/tree/main/Docs-ContextMenuSample/ExplorerCommandVerb going:
I am using Visual Studio 2019 16.10.4 and 64 bit Windows 10 10.0.19043.1110.
I tried to build the Blog-ModernizationStory solution but can't seem to get it working.
I've tried with the most recent VS Community 2019 (16.8.6 as well as 16.9.0 Preview 4.0) but always get this for the WAP project
and when removing that from the solution it builds but then throws this
Application log:
Activation context generation failed for "C:\temp\test\Windows-AppConsult-Samples-DesktopBridge-master\Blog-ModernizationStory\DynamicWindowsForms\bin\x64\Debug\netcoreapp3.1\DynamicWindowsForms.exe".
Error in manifest or policy file "C:\temp\test\Windows-AppConsult-Samples-DesktopBridge-master\Blog-ModernizationStory\DynamicWindowsForms\bin\x64\Debug\netcoreapp3.1\DynamicWindowsForms.exe" on line 2.
The attribute internalKeyToken is not permitted in this context on element assemblyIdentity.
In the SourceGenerator example, MvvmGenerator, it makes it seem like public properties are fair game.
because it can handle public properties that are COMPUTED, I took it to mean that all public properties are also able to receive the [AutoNotify] attribute, and the propertyChanged would be correctly handled.
This is absolutely not the case, and so I would like for there to be a readme that addresses this so that other devs are not confused as to why the generator "isn't working".
The Readme should mention how only computed public properties are valid, and this is only the case if something is raising the property changed event for all the variables in the computation and the [AutoNotify] attribute is on it.
Normal public properties are not valid for usage with the [AutoNotify] attribute.
Even if the example had included this:
public partial class MainWindowViewModel
{
//Note, [AutoNotify] is Not going to be generated if you
//assign it to any normal public property, such as an AutoProperty.
//for example, This :
//
// [AutoNotify]
// public string FirstName { get; set; }
// [AutoNotify]
// public string LastName { get; set; }
//
//Will NOT cause the MvvmGenerator to consider them as candidates
// to generate PropertyChanged invocations for.
//The MvvmGenerator is still meant primarily to be used with fields,
// but with the added benefit/exception of public computed properties being also usable.
[AutoNotify]
private string _firstName;
[AutoNotify]
private string _lastName;
[AutoNotify]
public string FullName => $"{FirstName} {LastName}";
}
I would not have wasted a day thinking I'd gone mad. lol.
Thank you!
I was interested in seeing the initial blog post that was talking about the MvvmGenerator sample, and upon clicking the link to the blog I get a 404. https://docs.microsoft.com/en-us/archive/blogs/appconsult/tag/desktop-bridge
There are important files that Microsoft projects should all have that are not present in this repository. A pull request has been opened to add the missing file(s). When the pr is merged this issue will be closed automatically.
Microsoft teams can learn more about this effort and share feedback within the open source guidance available internally.
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.