From 2dafa1520432c805fd0942c79aba5726a1508345 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Mon, 12 Jul 2021 10:45:27 +0200 Subject: [PATCH] Config.Test: Add new project --- Config.Test/Config.Test.vbproj | 128 ++++++++++++++++++ .../My Project/Application.Designer.vb | 13 ++ Config.Test/My Project/Application.myapp | 10 ++ Config.Test/My Project/AssemblyInfo.vb | 18 +++ Config.Test/My Project/Resources.Designer.vb | 62 +++++++++ Config.Test/My Project/Resources.resx | 117 ++++++++++++++++ Config.Test/My Project/Settings.Designer.vb | 73 ++++++++++ Config.Test/My Project/Settings.settings | 7 + Config.Test/UnitTest1.vb | 9 ++ Config.Test/packages.config | 5 + 10 files changed, 442 insertions(+) create mode 100644 Config.Test/Config.Test.vbproj create mode 100644 Config.Test/My Project/Application.Designer.vb create mode 100644 Config.Test/My Project/Application.myapp create mode 100644 Config.Test/My Project/AssemblyInfo.vb create mode 100644 Config.Test/My Project/Resources.Designer.vb create mode 100644 Config.Test/My Project/Resources.resx create mode 100644 Config.Test/My Project/Settings.Designer.vb create mode 100644 Config.Test/My Project/Settings.settings create mode 100644 Config.Test/UnitTest1.vb create mode 100644 Config.Test/packages.config diff --git a/Config.Test/Config.Test.vbproj b/Config.Test/Config.Test.vbproj new file mode 100644 index 00000000..b5855511 --- /dev/null +++ b/Config.Test/Config.Test.vbproj @@ -0,0 +1,128 @@ + + + + + + Debug + AnyCPU + {B9A63193-1391-4E20-B578-0867F330396C} + Library + Config.Test + Config.Test + 512 + Windows + v4.6.1 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{F184B08F-C81C-45F6-A57F-5ABD9991F28F} + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages + False + UnitTest + + + + + true + full + true + true + bin\Debug\ + Config.Test.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + pdbonly + false + true + true + bin\Release\ + Config.Test.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + On + + + Binary + + + Off + + + On + + + + ..\packages\MSTest.TestFramework.2.1.1\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll + + + ..\packages\MSTest.TestFramework.2.1.1\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll + + + + + + + + + + + + + + + + + + + + + + + + + True + Application.myapp + + + True + True + Resources.resx + + + True + Settings.settings + True + + + + + VbMyResourcesResXFileCodeGenerator + Resources.Designer.vb + My.Resources + Designer + + + + + MyApplicationCodeGenerator + Application.Designer.vb + + + SettingsSingleFileGenerator + My + Settings.Designer.vb + + + + + + + + Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Verwenden Sie die Wiederherstellung von NuGet-Paketen, um die fehlenden Dateien herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}". + + + + + + \ No newline at end of file diff --git a/Config.Test/My Project/Application.Designer.vb b/Config.Test/My Project/Application.Designer.vb new file mode 100644 index 00000000..88dd01c7 --- /dev/null +++ b/Config.Test/My Project/Application.Designer.vb @@ -0,0 +1,13 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.42000 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + diff --git a/Config.Test/My Project/Application.myapp b/Config.Test/My Project/Application.myapp new file mode 100644 index 00000000..758895de --- /dev/null +++ b/Config.Test/My Project/Application.myapp @@ -0,0 +1,10 @@ + + + false + false + 0 + true + 0 + 1 + true + diff --git a/Config.Test/My Project/AssemblyInfo.vb b/Config.Test/My Project/AssemblyInfo.vb new file mode 100644 index 00000000..4ed4c761 --- /dev/null +++ b/Config.Test/My Project/AssemblyInfo.vb @@ -0,0 +1,18 @@ +Imports System +Imports System.Reflection +Imports System.Runtime.InteropServices + + + + + + + + + + + + +' + + diff --git a/Config.Test/My Project/Resources.Designer.vb b/Config.Test/My Project/Resources.Designer.vb new file mode 100644 index 00000000..d40c03ff --- /dev/null +++ b/Config.Test/My Project/Resources.Designer.vb @@ -0,0 +1,62 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.42000 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My.Resources + + 'This class was auto-generated by the StronglyTypedResourceBuilder + 'class via a tool like ResGen or Visual Studio. + 'To add or remove a member, edit your .ResX file then rerun ResGen + 'with the /str option, or rebuild your VS project. + ''' + ''' A strongly-typed resource class, for looking up localized strings, etc. + ''' + _ + Friend Module Resources + + Private resourceMan As Global.System.Resources.ResourceManager + + Private resourceCulture As Global.System.Globalization.CultureInfo + + ''' + ''' Returns the cached ResourceManager instance used by this class. + ''' + _ + Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager + Get + If Object.ReferenceEquals(resourceMan, Nothing) Then + Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Config.Test.Resources", GetType(Resources).Assembly) + resourceMan = temp + End If + Return resourceMan + End Get + End Property + + ''' + ''' Overrides the current thread's CurrentUICulture property for all + ''' resource lookups using this strongly typed resource class. + ''' + _ + Friend Property Culture() As Global.System.Globalization.CultureInfo + Get + Return resourceCulture + End Get + Set(ByVal value As Global.System.Globalization.CultureInfo) + resourceCulture = value + End Set + End Property + End Module +End Namespace diff --git a/Config.Test/My Project/Resources.resx b/Config.Test/My Project/Resources.resx new file mode 100644 index 00000000..af7dbebb --- /dev/null +++ b/Config.Test/My Project/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Config.Test/My Project/Settings.Designer.vb b/Config.Test/My Project/Settings.Designer.vb new file mode 100644 index 00000000..a8768989 --- /dev/null +++ b/Config.Test/My Project/Settings.Designer.vb @@ -0,0 +1,73 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.42000 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My + + _ + Partial Friend NotInheritable Class MySettings + Inherits Global.System.Configuration.ApplicationSettingsBase + + Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings) + +#Region "My.Settings Auto-Save Functionality" +#If _MyType = "WindowsForms" Then + Private Shared addedHandler As Boolean + + Private Shared addedHandlerLockObject As New Object + + _ + Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) + If My.Application.SaveMySettingsOnExit Then + My.Settings.Save() + End If + End Sub +#End If +#End Region + + Public Shared ReadOnly Property [Default]() As MySettings + Get + +#If _MyType = "WindowsForms" Then + If Not addedHandler Then + SyncLock addedHandlerLockObject + If Not addedHandler Then + AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings + addedHandler = True + End If + End SyncLock + End If +#End If + Return defaultInstance + End Get + End Property + End Class +End Namespace + +Namespace My + + _ + Friend Module MySettingsProperty + + _ + Friend ReadOnly Property Settings() As Global.Config.Test.My.MySettings + Get + Return Global.Config.Test.My.MySettings.Default + End Get + End Property + End Module +End Namespace diff --git a/Config.Test/My Project/Settings.settings b/Config.Test/My Project/Settings.settings new file mode 100644 index 00000000..85b890b3 --- /dev/null +++ b/Config.Test/My Project/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Config.Test/UnitTest1.vb b/Config.Test/UnitTest1.vb new file mode 100644 index 00000000..9dd9a080 --- /dev/null +++ b/Config.Test/UnitTest1.vb @@ -0,0 +1,9 @@ +Imports System.Text +Imports Microsoft.VisualStudio.TestTools.UnitTesting + + Public Class UnitTest1 + + Public Sub TestMethod1() + End Sub + +End Class \ No newline at end of file diff --git a/Config.Test/packages.config b/Config.Test/packages.config new file mode 100644 index 00000000..6eebc361 --- /dev/null +++ b/Config.Test/packages.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file