move core item into class library

master
Yik Teng Hie 3 years ago
parent e7ed4e24e7
commit 2b6f1a2cdc

@ -0,0 +1,10 @@

namespace MvvmAppCore.Interfaces
{
public interface IDemoService
{
string Name { get; }
void Show(string name);
}
}

@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.1.0" />
</ItemGroup>
</Project>

@ -1,11 +1,7 @@
using MvvmCommunityApp.interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MvvmAppCore.Interfaces;
namespace MvvmCommunityApp.viewmodels
namespace MvvmAppCore.ViewModels
{
public class IocPageViewModel : SamplePageViewModel
{

@ -2,7 +2,7 @@
using CommunityToolkit.Mvvm.Input;
using System;
namespace MvvmCommunityApp.viewmodels
namespace MvvmAppCore.ViewModels
{
public partial class MainWindowViewModel : ObservableObject
{

@ -1,7 +1,7 @@
using CommunityToolkit.Mvvm.ComponentModel;
using MvvmCommunityApp.interfaces;
using MvvmAppCore.Interfaces;
namespace MvvmCommunityApp.viewmodels
namespace MvvmAppCore.ViewModels
{
public class SamplePageViewModel : ObservableObject
{

@ -5,6 +5,8 @@ VisualStudioVersion = 17.4.33213.308
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MvvmCommunityApp", "MvvmCommunityApp\MvvmCommunityApp.csproj", "{A9F79E7F-91A0-4A7D-B2AD-2AF6D3C80B4B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MvvmAppCore", "MvvmAppCore\MvvmAppCore.csproj", "{8CFB1DAE-0565-4A86-B0CC-2D7E3C9ED053}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -15,6 +17,10 @@ Global
{A9F79E7F-91A0-4A7D-B2AD-2AF6D3C80B4B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A9F79E7F-91A0-4A7D-B2AD-2AF6D3C80B4B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A9F79E7F-91A0-4A7D-B2AD-2AF6D3C80B4B}.Release|Any CPU.Build.0 = Release|Any CPU
{8CFB1DAE-0565-4A86-B0CC-2D7E3C9ED053}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8CFB1DAE-0565-4A86-B0CC-2D7E3C9ED053}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8CFB1DAE-0565-4A86-B0CC-2D7E3C9ED053}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8CFB1DAE-0565-4A86-B0CC-2D7E3C9ED053}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

@ -1,8 +1,8 @@
using CommunityToolkit.Mvvm.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using MvvmCommunityApp.interfaces;
using MvvmAppCore.ViewModels;
using MvvmCommunityApp.services;
using MvvmCommunityApp.viewmodels;
using MvvmAppCore.Interfaces;
using System;
using System.Windows;

@ -1,9 +1,5 @@
using CommunityToolkit.Mvvm.DependencyInjection;
using MvvmCommunityApp.viewmodels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvvmAppCore.ViewModels;
using System.Windows;

@ -16,4 +16,8 @@
<Folder Include="views\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MvvmAppCore\MvvmAppCore.csproj" />
</ItemGroup>
</Project>

@ -1,15 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MvvmCommunityApp.interfaces
{
public interface IDemoService
{
string Name { get; }
void Show(string name);
}
}

@ -1,4 +1,4 @@
using MvvmCommunityApp.interfaces;
using MvvmAppCore.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;

Loading…
Cancel
Save