Skip to content

Commit

Permalink
Merge pull request #307 from OpenTouryoProject/develop
Browse files Browse the repository at this point in the history
Additional fixes for v02-30 release.
yusukemaegawa authored Sep 19, 2018
2 parents 4412d42 + 5d909b9 commit a1f535a
Showing 19 changed files with 365 additions and 214 deletions.
11 changes: 5 additions & 6 deletions root/README.md
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ Click [here](Readme.ja.md) for Japanese version of this file.
## Running sample application tasks
You can run the sample application bundled with Open Touryo according to the following steps.

Notation *Optional*:
Notation *Optional*:
Open Touryo supports the following DBMSs and data providers. But the data providers, having the notation *optional*, are not included in the programs of Open Touryo. When using the DBMSs and data providers having the notation *optional*, download the data provider manually, and modify [the data access project of Open Touryo, that is DamXXX.csproj](https://github.com/OpenTouryoProject/OpenTouryo/tree/develop/root/programs/CS/Frameworks/Infrastructure/Public/Db), to refer the data provider.

### Install prerequisites
@@ -81,8 +81,7 @@ exec sp_dboption 'Northwind','select into/bulkcopy','true'

Execute the following command at a command prompt.
**Note**:
In the following command, the path of the folder that contains *SQLCMD.EXE* changes according to the version of SQL Server.
Execute command after confirming the path of folder in your environment.
In the following command, the path of the folder that contains *SQLCMD.EXE* changes according to the version of SQL Server. Execute command after confirming the path of folder in your environment.
```bat
"C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLCMD.EXE" -S localhost\SQLExpress -E -i "C:\SQL Server 2000 Sample Databases\instnwnd.sql"
```
@@ -259,15 +258,15 @@ Open a command prompt as an administrator and execute the following commands.
```

### Run the sample application
- Open the following file.
Open the following file.
- Open web.config or app.config (for .NET Core, appsettings.json) and revise the values in *connectionStrings* section according to the actual database environment.
- Run the sample application.
At the login screen, enter the arbitrary alphanumeric characters. (By default, the password authentication is not executed.)

#### Web application:
- ASP.NET Web Forms
- C:\root\programs\CS\Samples\WebApp_sample\ProjectX_sample\ProjectX_sample.sln
- C:\root\programs\VB\Samples\WebApp_sample\ProjectX_sample\ProjectX_sample.sln
- C:\root\programs\CS\Samples\WebApp_sample\WebForms_Sample\WebForms_Sample.sln
- C:\root\programs\VB\Samples\WebApp_sample\WebForms_Sample\WebForms_Sample.sln
- ASP.NET MVC
- C:\root\programs\CS\Samples\WebApp_sample\MVC_Sample\MVC_Sample.sln
- C:\root\programs\VB\Samples\WebApp_sample\MVC_Sample\MVC_Sample.sln
11 changes: 4 additions & 7 deletions root/Readme.ja.md
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ Open 棟梁のプログラムは、以下のリポジトリで公開していま
## サンプルの実行手順
Open 棟梁に同梱されるサンプルアプリケーションの実行手順は以下のとおりです。

**Optional 表記:**
**Optional 表記:**
以下、optional 表記のある DBMS とデータプロバイダは、Open 棟梁でサポートされていますが、Open 棟梁のプログラムには含まれていません。そのため、optional 表記のある DBMS とデータプロバイダを使う場合、必要に応じてデータプロバイダを手動でダウンロードし、[Open 棟梁のデータアクセス用のプロジェクト (DamXXX.csproj)](https://github.com/OpenTouryoProject/OpenTouryo/tree/develop/root/programs/CS/Frameworks/Infrastructure/Public/Db) から、当該データプロバイダに参照設定を張り直してください。

### 前提ツールのインストール
@@ -88,7 +88,7 @@ exec sp_dboption 'Northwind','select into/bulkcopy','true'

### プログラムのビルド
Open 棟梁のプログラムをビルドするときは、**初回のみ、MSBuild を使用したビルドバッチファイルを実行**して、プログラムをビルドします。
これは、Open 棟梁のテンプレートベースには、「フレームワーク部分 (ベースクラス1,2)」と「サンプルアプリケーション」がありますが、フレームワーク部分のビルド生成物 (DLL ファイル) を Open 棟梁の既定の置き場にコピーするなどの処理が必要なためです。
これは、Open 棟梁のテンプレート・ベースには、「フレームワーク部分 (ベースクラス1,2)」と「サンプルアプリケーション」がありますが、フレームワーク部分のビルド生成物 (DLL ファイル) を Open 棟梁の既定の置き場にコピーするなどの処理が必要なためです。
これらの一連のビルドプロセスをまとめたバッチファイルを実行します。

ビルドバッチファイルは、以下のフォルダにあります。
@@ -257,8 +257,8 @@ C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2863,5):

#### Web の場合:
- ASP.NET Web Forms
- C:\root\programs\CS\Samples\WebApp_sample\ProjectX_sample\ProjectX_sample.sln
- C:\root\programs\VB\Samples\WebApp_sample\ProjectX_sample\ProjectX_sample.sln
- C:\root\programs\CS\Samples\WebApp_sample\WebForms_Sample\WebForms_Sample.sln
- C:\root\programs\VB\Samples\WebApp_sample\WebForms_Sample\WebForms_Sample.sln
- ASP.NET MVC
- C:\root\programs\CS\Samples\WebApp_sample\MVC_Sample\MVC_Sample.sln
- C:\root\programs\VB\Samples\WebApp_sample\MVC_Sample\MVC_Sample.sln
@@ -300,9 +300,6 @@ Open 棟梁の NuGetパッケージを作成する方法については、[こ
- NuGetまたはnpmなどのパッケージ・マネージャーから取得できるライブラリは、Open 棟梁に同梱されないため、輸出管理する必要はありません。
- これ以外のライブラリ、つまりパッケージ・マネージャーから入手できないライブラリは、必要に応じて自身で入手・同梱して輸出する必要があります。この場合、Open棟梁のライセンスに、使用するライブラリのライセンスを添付する必要があります。


Open Touryoのライセンスには、ライブラリのライセンスを添付する必要があります。

### 参考資料
Open 棟梁をご利用いただくにあたり、OpenTouryoDocument リポジトリのドキュメントをご利用いただけます。
- [紹介資料](https://github.com/OpenTouryoProject/OpenTouryoDocuments/tree/master/documents/0_Introduction)
6 changes: 0 additions & 6 deletions root/programs/CS/3_Build_Framework.bat
Original file line number Diff line number Diff line change
@@ -54,11 +54,5 @@ rem --------------------------------------------------

pause

rem --------------------------------------------------
rem Delete the System.Web.MVC.dll after the bulk copy
rem --------------------------------------------------
del "Frameworks\Infrastructure\Build\System.Web.MVC.*"
del "Frameworks\Infrastructure\Temp\%BUILD_CONFIG%\System.Web.MVC.*"

rem -------------------------------------------------------
endlocal
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
<TargetFramework>netcoreapp2.0</TargetFramework>
<RootNamespace>Touryo.Infrastructure.Business</RootNamespace>
<AssemblyName>OpenTouryo.Business</AssemblyName>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@@ -12,6 +13,7 @@
<DocumentationFile>..\Build_netcore20\netcoreapp2.0\OpenTouryo.Business.xml</DocumentationFile>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<NoWarn>1701;1702;NU1701</NoWarn>
</PropertyGroup>

<ItemGroup>
Original file line number Diff line number Diff line change
@@ -41,6 +41,10 @@
<SignManifests>false</SignManifests>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Infrastructure\Build\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="OpenTouryo.Public, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Infrastructure\Build\OpenTouryo.Public.dll</HintPath>
27 changes: 12 additions & 15 deletions root/programs/CS/NuGet/_NuGetPack.bat
Original file line number Diff line number Diff line change
@@ -6,21 +6,18 @@ xcopy /E /Y "..\Frameworks\Infrastructure\Build_net46" "in\net46"
xcopy /E /Y "..\Frameworks\Infrastructure\Build_net47" "in\net47"
xcopy /E /Y "..\Frameworks\Infrastructure\Build_netstd20\netstandard2.0" "in\netstandard2.0"

@rem PrimaryPackageの生成
..\..\nuget.exe pack Public.nuspec -OutputDirectory out\pp
..\..\nuget.exe pack Framework.nuspec -OutputDirectory out\pp
..\..\nuget.exe pack Framework.RichClient.nuspec -OutputDirectory out\pp
..\..\nuget.exe pack DamManagedOdp.nuspec -OutputDirectory out\pp
..\..\nuget.exe pack DamPstGrS.nuspec -OutputDirectory out\pp
..\..\nuget.exe pack DamMySQL.nuspec -OutputDirectory out\pp

@rem PrimaryPackageとSymbolPackageの生成
..\..\nuget.exe pack Symbol_Public.nuspec -OutputDirectory out\sp -Symbols
..\..\nuget.exe pack Symbol_Framework.nuspec -OutputDirectory out\sp -Symbols
..\..\nuget.exe pack Symbol_Framework.RichClient.nuspec -OutputDirectory out\sp -Symbols
..\..\nuget.exe pack Symbol_DamManagedOdp.nuspec -OutputDirectory out\sp -Symbols
..\..\nuget.exe pack Symbol_DamPstGrS.nuspec -OutputDirectory out\sp -Symbols
..\..\nuget.exe pack Symbol_DamMySQL.nuspec -OutputDirectory out\sp -Symbols
"..\..\nuget.exe" pack Public.nuspec -OutputDirectory "out\pp"
"..\..\nuget.exe" pack Framework.nuspec -OutputDirectory "out\pp"
"..\..\nuget.exe" pack Framework.RichClient.nuspec -OutputDirectory "out\pp"
"..\..\nuget.exe" pack DamManagedOdp.nuspec -OutputDirectory "out\pp"
"..\..\nuget.exe" pack DamPstGrS.nuspec -OutputDirectory "out\pp"
"..\..\nuget.exe" pack DamMySQL.nuspec -OutputDirectory "out\pp"

"..\..\nuget.exe" pack Symbol_Public.nuspec -OutputDirectory "out\sp" -Symbols
"..\..\nuget.exe" pack Symbol_Framework.nuspec -OutputDirectory "out\sp" -Symbols
"..\..\nuget.exe" pack Symbol_Framework.RichClient.nuspec -OutputDirectory "out\sp" -Symbols
"..\..\nuget.exe" pack Symbol_DamManagedOdp.nuspec -OutputDirectory "out\sp" -Symbols
"..\..\nuget.exe" pack Symbol_DamPstGrS.nuspec -OutputDirectory "out\sp" -Symbols
"..\..\nuget.exe" pack Symbol_DamMySQL.nuspec -OutputDirectory "out\sp" -Symbols

pause
8 changes: 3 additions & 5 deletions root/programs/CS/NuGet/out/pp/_NuGetPush.bat
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
setlocal
@echo off

@rem ApiKeyを登録
..\..\..\..\nuget.exe SetApiKey [ApiKey]
"..\..\..\..\nuget.exe" SetApiKey [ApiKey]

@rem nuget.orgにPrimaryPackageを登録
..\..\..\..\nuget.exe push Touryo.Infrastructure.Public.*.nupkg -source https://www.nuget.org/
..\..\..\..\nuget.exe push Touryo.Infrastructure.Framework.*.nupkg -source https://www.nuget.org/
"..\..\..\..\nuget.exe" push Touryo.Infrastructure.Public.*.nupkg -source https://www.nuget.org/
"..\..\..\..\nuget.exe" push Touryo.Infrastructure.Framework.*.nupkg -source https://www.nuget.org/

pause
8 changes: 3 additions & 5 deletions root/programs/CS/NuGet/out/sp/_NuGetPush.bat
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
setlocal
@echo off

@rem ApiKeyを登録
..\..\..\..\nuget.exe SetApiKey [ApiKey]
"..\..\..\..\nuget.exe" SetApiKey [ApiKey]

@rem symbolsource.orgにSymbolPackageを登録
..\..\..\..\nuget.exe push Touryo.Infrastructure.Public.*.symbols.nupkg -source https://nuget.smbsrc.net/
..\..\..\..\nuget.exe push Touryo.Infrastructure.Framework.*.symbols.nupkg -source https://nuget.smbsrc.net/
"..\..\..\..\nuget.exe" push Touryo.Infrastructure.Public.*.symbols.nupkg -source https://nuget.smbsrc.net/
"..\..\..\..\nuget.exe" push Touryo.Infrastructure.Framework.*.symbols.nupkg -source https://nuget.smbsrc.net/

pause
Loading

0 comments on commit a1f535a

Please sign in to comment.