MvvmCodeGenerator 0.0.27-beta
This is a prerelease version of MvvmCodeGenerator.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MvvmCodeGenerator --version 0.0.27-beta
NuGet\Install-Package MvvmCodeGenerator -Version 0.0.27-beta
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MvvmCodeGenerator" Version="0.0.27-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MvvmCodeGenerator --version 0.0.27-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MvvmCodeGenerator, 0.0.27-beta"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MvvmCodeGenerator as a Cake Addin #addin nuget:?package=MvvmCodeGenerator&version=0.0.27-beta&prerelease // Install MvvmCodeGenerator as a Cake Tool #tool nuget:?package=MvvmCodeGenerator&version=0.0.27-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Temporary documentation :
- In your .netStandard 2.0 project add a new file called :
MvvmCodeGenMapper.xml
- Declare your ViewModels or ItemsViewModels like this :
<Resources>
<Generator Value="freshmvvm" />
<ViewModels Namespace="MvvmCodeGenerator.Sample" DestinationFolder="ViewModel">
<ViewModel Key="Root">
<Property Name="IsNew" Type="bool" Description="A test" />
</ViewModel>
<ViewModel Key="Home" Base="Root">
<Property Name="Planning" Type="string" Description="The planning." />
</ViewModel>
<ViewModel Key="Dashboard">
<Property Name="Title" Type="string" Description="Gets or sets the title." />
<Property Name="Number" Type="int" Description="Gets or sets the total number." />
<Property Name="Degrees" Type="float" Description="Gets or sets the degrees." />
<Property Name="UnKnown" Type="object" Description="Gets or sets the unknown object." />
<Property Name="MyDate" Type="DateTime" Description="Gets or sets the date and hour." />
<Property Name="MyTimeOffset" Type="DateTimeOffset" Description="Gets or sets the date and hour offset." />
<Property Name="MyTimeSpan" Type="TimeSpan" Description="Gets or sets the time span." />
<Property Name="JobControlFilesEnabled" Type="bool" Description="Gets or sets if check files can be viewed or not" />
<Command Name="JobActivation" Description="Gets or sets the command to manager job actions such as day (de)activation and breaks" />
<Command Name="ConsultControlFiles" Parameter="int" Description="Gets or sets the command to consult control files" />
<Command Name="Files" Parameter="bool" CanExecute="true" Description="Gets or sets the files"/>
<AsyncCommand Name="ConsultFiles" Description="Gets or sets the command to consult control files" />
<AsyncCommand Name="Consult" Parameter="string" Description="Gets or sets the command to consult control files" />
<AsyncCommand Name="Consultation" Parameter="string" CanExecute="true" Description="Gets or sets the command for the consultation" />
</ViewModel>
</ViewModels>
<ViewModels Namespace="MvvmCodeGenerator.Sample.Items" DestinationFolder="ViewModel/Items">
<ItemViewModel Key="Switch">
<Property Name="Title" Type="string" Description="Gets or sets the title." />
<Property Name="IsEnabled" Type="bool" Description="Gets or sets the is enable toggle." />
<AsyncCommand Name="Activate" Description="Gets or sets the activate command of the switch" />
</ItemViewModel>
<ItemViewModel Key="Input">
<Property Name="Message" Type="string" Description="Gets or sets the message." />
<Property Name="AllMessages" Type="list string" Description="Gets or sets all messages." />
<Property Name="MyHouse" Type="Xamarin.Sample.Models.House" Description="Gets or sets my houses." />
<Property Name="AllHouses" Type="list Xamarin.Sample.Models.House" Description="Gets or sets all houses." />
<AsyncCommand Name="Send" Description="Gets or sets the send command of the input" />
</ItemViewModel>
</ViewModels>
</Resources>
- You have 4 generator choose the one you like by wrinting : mvvmlightlibs or mvvmicro or mvvmcross or freshmvvm
- Compile the project and you will have your files generated.
- Add this line to your csproj to get your project files displayed properly : <Import Project="MvvmCodeGenMapper.g.targets" />
- Implement the commands methods generated in the ViewModel.Cs associated.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.1.3 | 1,083 | 9/13/2019 |
1.1.2 | 539 | 8/19/2019 |
1.1.1 | 497 | 8/19/2019 |
1.1.0 | 561 | 8/15/2019 |
1.0.0 | 537 | 7/26/2019 |
0.0.29-beta | 409 | 7/21/2019 |
0.0.28-beta | 372 | 7/19/2019 |
0.0.27-beta | 432 | 7/17/2019 |
0.0.26-beta | 453 | 7/17/2019 |
0.0.25-beta | 415 | 7/16/2019 |
Generate boilerplate code for MvvmLightLibs, MvvmCross, Mvvmicro and FreshMvvm.