Skip to content

Commit

Permalink
Fix bug in tutorial (dotnet#282)
Browse files Browse the repository at this point in the history
* Add code for each tutorial step

* readme

* minor

* Fix forgotten code change; add sln for debugs
  • Loading branch information
adegeo authored Oct 1, 2022
1 parent 1ec489b commit cd4cd91
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 1 deletion.
27 changes: 27 additions & 0 deletions 6.0/Tutorials/CreateNetMauiApp/step1/Notes.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.4.32916.344
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Notes", "Notes.csproj", "{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Release|Any CPU.Build.0 = Release|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C177C5C5-C67F-4457-BD0A-DF85476DC946}
EndGlobalSection
EndGlobal
27 changes: 27 additions & 0 deletions 6.0/Tutorials/CreateNetMauiApp/step2/Notes.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.4.32916.344
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Notes", "Notes.csproj", "{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Release|Any CPU.Build.0 = Release|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C177C5C5-C67F-4457-BD0A-DF85476DC946}
EndGlobalSection
EndGlobal
27 changes: 27 additions & 0 deletions 6.0/Tutorials/CreateNetMauiApp/step3/Notes.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.4.32916.344
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Notes", "Notes.csproj", "{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Release|Any CPU.Build.0 = Release|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C177C5C5-C67F-4457-BD0A-DF85476DC946}
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion 6.0/Tutorials/CreateNetMauiApp/step4/Models/AllNotes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public void LoadNotes()
Notes.Clear();

// Get the folder where the notes are stored.
string appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
string appDataPath = FileSystem.AppDataDirectory;

// Use Linq extensions to load the *.notes.txt files.
IEnumerable<Note> notes = Directory
Expand Down
27 changes: 27 additions & 0 deletions 6.0/Tutorials/CreateNetMauiApp/step4/Notes.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.4.32916.344
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Notes", "Notes.csproj", "{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Release|Any CPU.Build.0 = Release|Any CPU
{0CE9FCF7-16AA-467F-8F04-FF175FBC288D}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C177C5C5-C67F-4457-BD0A-DF85476DC946}
EndGlobalSection
EndGlobal

0 comments on commit cd4cd91

Please sign in to comment.