microsoft-visualbasic-runtime/test/devTest.vb

83 lines
2.3 KiB
VB.net
Raw Normal View History

2022-10-17 04:59:02 +08:00
#Region "Microsoft.VisualBasic::f7f080a3937977b0bc3d8232641b57f7, sciBASIC#\Microsoft.VisualBasic.Core\test\devTest.vb"
2021-01-12 20:24:38 +08:00
' Author:
'
' asuka (amethyst.asuka@gcmodeller.org)
' xie (genetics@smrucc.org)
' xieguigang (xie.guigang@live.com)
'
' Copyright (c) 2018 GPL3 Licensed
'
'
' GNU GENERAL PUBLIC LICENSE (GPL3)
'
'
' This program is free software: you can redistribute it and/or modify
' it under the terms of the GNU General Public License as published by
' the Free Software Foundation, either version 3 of the License, or
' (at your option) any later version.
'
' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
' GNU General Public License for more details.
'
' You should have received a copy of the GNU General Public License
' along with this program. If not, see <http://www.gnu.org/licenses/>.
' /********************************************************************************/
' Summaries:
2022-03-22 23:05:09 +08:00
' Code Statistics:
2022-10-17 04:59:02 +08:00
' Total Lines: 31
' Code Lines: 22
2022-03-22 23:05:09 +08:00
' Comment Lines: 0
2022-10-17 04:59:02 +08:00
' Blank Lines: 9
' File Size: 856 B
2022-03-22 23:05:09 +08:00
2021-01-12 20:24:38 +08:00
' Module devTest
'
2022-10-17 04:59:02 +08:00
' Sub: logfileTest, Main
2021-01-12 20:24:38 +08:00
'
' /********************************************************************************/
#End Region
Imports Microsoft.VisualBasic.ApplicationServices.Development.NetCore5
Imports Microsoft.VisualBasic.Serialization.JSON
Module devTest
Sub Main()
2022-09-25 00:27:08 +08:00
Call logfileTest()
2021-01-12 20:24:38 +08:00
Dim deps = "D:\GCModeller\src\R-sharp\App\net5.0\base.deps.json".LoadJsonFile(Of deps)
Dim ref = deps.GetReferenceProject.ToArray
Pause()
End Sub
2022-09-25 00:27:08 +08:00
Sub logfileTest()
Dim log = App.RedirectLogging("E:\VB_GamePads\src\framework\Microsoft.VisualBasic.Core\test\bin\Debug.txt")
Call Console.WriteLine("sdfsdfsdfsdf")
Call Console.Write("adfasdas")
Call Console.Write(" ")
Call Console.Write("!!!!!")
Call Console.WriteLine("--------")
Call log.Flush()
Call log.Close()
Call Console.OpenStandardOutput()
Pause()
End Sub
2021-01-12 20:24:38 +08:00
End Module