Skip to content

Commit 20a106c

Browse files
Preparations for 1.0.0 release.
1 parent 5b68ab4 commit 20a106c

37 files changed

+177
-55
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.vs
12
*.suo
23
**/obj/*
34
**/bin/*

build-release.bat

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
@echo off
2+
setlocal
3+
4+
rem Clear any user set ERRORLEVEL variable:
5+
set "ERRORLEVEL="
6+
7+
rem Enable advanced batch file commands:
8+
verify argument_to_enforce_error 2>nul
9+
setlocal EnableExtensions
10+
if ERRORLEVEL 1 (
11+
echo=SCRIPT ABORTED: Command extensions not supported.
12+
exit /b 1
13+
)
14+
verify argument_to_enforce_error 2>nul
15+
setlocal EnableDelayedExpansion
16+
if ERRORLEVEL 1 (
17+
endlocal rem Undo "setlocal EnableExtensions"
18+
echo=SCRIPT ABORTED: Delayed expansion not supported.
19+
exit /b 1
20+
)
21+
22+
rem Configure "exit" to terminate subroutines and entire script:
23+
if not "%SelfWrapped%"=="%~0" (
24+
set "SelfWrapped=%~0"
25+
%ComSpec% /s /c ""%~0" %*"
26+
endlocal rem Undo "setlocal EnableExtensions"
27+
endlocal rem Undo "setlocal EnableDelayedExpansion"
28+
goto :eof
29+
)
30+
31+
set "SCRIPTPATH=%~dp0"
32+
set "SCRIPTPATH=%SCRIPTPATH:~0,-1%"
33+
34+
rem Initialize Microsoft build environment:
35+
set "arch=x86"
36+
call where msbuild >nul 2>nul
37+
if ERRORLEVEL 1 (
38+
for %%y in ( "2019" "2017" ) do (
39+
for %%v in ( "Enterprise" "Professional" "Community" "BuildTools" ) do (
40+
if exist "C:\Program Files (x86)\Microsoft Visual Studio\%%y\%%v\VC\Auxiliary\Build\vcvarsall.bat" (
41+
call "C:\Program Files (x86)\Microsoft Visual Studio\%%y\%%v\VC\Auxiliary\Build\vcvarsall.bat" ^
42+
%arch%
43+
if ERRORLEVEL 1 ( rem Not working: 'vcvarsall.bat' never returns error code.
44+
set "EMESSAGE=Microsoft build environment initialization failed (Microsoft Visual Studio %%y)"
45+
call :ERROR
46+
)
47+
goto :VISUAL_STUDIO_INITIALIZED
48+
)
49+
)
50+
)
51+
for %%v in ( "14.0" "12.0" "11.0" "10.0" ) do (
52+
if exist "C:\Program Files (x86)\Microsoft Visual Studio %%v\VC\vcvarsall.bat" (
53+
call "C:\Program Files (x86)\Microsoft Visual Studio %%v\VC\vcvarsall.bat" ^
54+
%arch%
55+
if ERRORLEVEL 1 (
56+
set "EMESSAGE=Microsoft build environment initialization failed (Microsoft Visual Studio v%%v)"
57+
call :ERROR
58+
)
59+
goto :VISUAL_STUDIO_INITIALIZED
60+
)
61+
)
62+
set "EMESSAGE=No Microsoft Visual Studio installation found"
63+
call :ERROR
64+
)
65+
:VISUAL_STUDIO_INITIALIZED
66+
67+
rem Cleanup old builds:
68+
rmdir /S /Q "%SCRIPTPATH%/eFMUContainerManager.CLI/bin"
69+
rmdir /S /Q "%SCRIPTPATH%/eFMUContainerManager.CLI/obj"
70+
rmdir /S /Q "%SCRIPTPATH%/eFMUContainerManager.Core/bin"
71+
rmdir /S /Q "%SCRIPTPATH%/eFMUContainerManager.Core/obj"
72+
rmdir /S /Q "%SCRIPTPATH%/eFMUContainerManager.Core.Interfaces/bin"
73+
rmdir /S /Q "%SCRIPTPATH%/eFMUContainerManager.Core.Interfaces/obj"
74+
rmdir /S /Q "%SCRIPTPATH%/eFMUManifestsAndContainers/bin"
75+
rmdir /S /Q "%SCRIPTPATH%/eFMUManifestsAndContainers/obj"
76+
rmdir /S /Q "%SCRIPTPATH%/eFMUMisc/bin"
77+
rmdir /S /Q "%SCRIPTPATH%/eFMUMisc/obj"
78+
79+
rem Build new release:
80+
msbuild ^
81+
"%SCRIPTPATH%/eFMUContainerManager.sln" ^
82+
"/property:Configuration=Release" ^
83+
"/property:Platform=Any CPU"
84+
if ERRORLEVEL 1 (
85+
set "EMESSAGE=Build failed with errors"
86+
call :ERROR
87+
)
88+
exit %ERRORLEVEL%
89+
90+
rem ********************************************************************************************************** Support functions:
91+
92+
rem Print error message and exit:
93+
:ERROR
94+
echo=
95+
echo=ERROR: %EMESSAGE%.
96+
echo=
97+
exit 1

eFMUContainerManager.CLI/Options.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 dSPACE GmbH
2+
* Copyright (c) 2021, dSPACE GmbH, Modelica Association and contributors
33
*
44
* Licensed under the 3-Clause BSD license(the \"License\");
55
* you may not use this software except in compliance with

eFMUContainerManager.CLI/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 dSPACE GmbH
2+
* Copyright (c) 2021, dSPACE GmbH, Modelica Association and contributors
33
*
44
* Licensed under the 3-Clause BSD license(the \"License\");
55
* you may not use this software except in compliance with

eFMUContainerManager.CLI/Properties/AssemblyInfo.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 dSPACE GmbH
2+
* Copyright (c) 2021, dSPACE GmbH, Modelica Association and contributors
33
*
44
* Licensed under the 3-Clause BSD license(the \"License\");
55
* you may not use this software except in compliance with
@@ -24,9 +24,9 @@
2424
[assembly: AssemblyTitle("eFMUContainerManager.CLI")]
2525
[assembly: AssemblyDescription("Tool to handle eFMU containers.")]
2626
[assembly: AssemblyConfiguration("")]
27-
[assembly: AssemblyCompany("dSPACE GmbH")]
27+
[assembly: AssemblyCompany("Modelica Association")]
2828
[assembly: AssemblyProduct("eFMUContainerManager.CLI")]
29-
[assembly: AssemblyCopyright("Copyright 2021 dSPACE GmbH")]
29+
[assembly: AssemblyCopyright("Copyright (c) 2021, dSPACE GmbH, Modelica Association and contributors")]
3030
[assembly: AssemblyTrademark("")]
3131
[assembly: AssemblyCulture("")]
3232

@@ -48,5 +48,5 @@
4848
// You can specify all the values or you can default the Build and Revision Numbers
4949
// by using the '*' as shown below:
5050
// [assembly: AssemblyVersion("1.0.*")]
51-
[assembly: AssemblyVersion("2.2.0.0")]
52-
[assembly: AssemblyFileVersion("2.2.0.0")]
51+
[assembly: AssemblyVersion("1.0.0.0")]
52+
[assembly: AssemblyFileVersion("1.0.0.0")]

eFMUContainerManager.CLI/eFMUContainerManager.CLI.csproj

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
3+
DefaultTargets="Build;FinishBuild">
34
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45
<PropertyGroup>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -27,7 +28,7 @@
2728
</PropertyGroup>
2829
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2930
<PlatformTarget>x64</PlatformTarget>
30-
<DebugType>pdbonly</DebugType>
31+
<DebugType>none</DebugType>
3132
<Optimize>true</Optimize>
3233
<OutputPath>bin\Release\</OutputPath>
3334
<DefineConstants>TRACE</DefineConstants>
@@ -80,4 +81,12 @@
8081
</ProjectReference>
8182
</ItemGroup>
8283
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
84+
85+
<Target Name="FinishBuild" AfterTargets="Build" Condition=" '$(Configuration)' == 'Release' ">
86+
<Copy SourceFiles="..\LICENSE" DestinationFolder="$(OutputPath)"/>
87+
<ZipDirectory
88+
SourceDirectory="$(OutputPath)"
89+
DestinationFile="$(OutputPath)\..\eFMI-Container-Manager-1-0-0.zip"
90+
/>
91+
</Target>
8392
</Project>

eFMUContainerManager.Core.Interfaces/IEfmuContainerManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 dSPACE GmbH
2+
* Copyright (c) 2021, dSPACE GmbH, Modelica Association and contributors
33
*
44
* Licensed under the 3-Clause BSD license(the \"License\");
55
* you may not use this software except in compliance with

eFMUContainerManager.Core.Interfaces/Properties/AssemblyInfo.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 dSPACE GmbH
2+
* Copyright (c) 2021, dSPACE GmbH, Modelica Association and contributors
33
*
44
* Licensed under the 3-Clause BSD license(the \"License\");
55
* you may not use this software except in compliance with
@@ -24,9 +24,9 @@
2424
[assembly: AssemblyTitle("eFMUContainerManager.Core.Interfaces")]
2525
[assembly: AssemblyDescription("")]
2626
[assembly: AssemblyConfiguration("")]
27-
[assembly: AssemblyCompany("dSPACE GmbH")]
27+
[assembly: AssemblyCompany("Modelica Association")]
2828
[assembly: AssemblyProduct("eFMUContainerManager.Core.Interfaces")]
29-
[assembly: AssemblyCopyright("Copyright 2021 dSPACE GmbH")]
29+
[assembly: AssemblyCopyright("Copyright (c) 2021, dSPACE GmbH, Modelica Association and contributors")]
3030
[assembly: AssemblyTrademark("")]
3131
[assembly: AssemblyCulture("")]
3232

@@ -48,5 +48,5 @@
4848
// You can specify all the values or you can default the Build and Revision Numbers
4949
// by using the '*' as shown below:
5050
// [assembly: AssemblyVersion("1.0.*")]
51-
[assembly: AssemblyVersion("2.2.0.0")]
52-
[assembly: AssemblyFileVersion("2.2.0.0")]
51+
[assembly: AssemblyVersion("1.0.0.0")]
52+
[assembly: AssemblyFileVersion("1.0.0.0")]

eFMUContainerManager.Core.Interfaces/eFMUContainerManager.Core.Interfaces.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<PlatformTarget>x64</PlatformTarget>
2525
</PropertyGroup>
2626
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27-
<DebugType>pdbonly</DebugType>
27+
<DebugType>none</DebugType>
2828
<Optimize>true</Optimize>
2929
<OutputPath>bin\Release\</OutputPath>
3030
<DefineConstants>TRACE</DefineConstants>

eFMUContainerManager.Core/EfmuAbstractCopier.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 dSPACE GmbH
2+
* Copyright (c) 2021, dSPACE GmbH, Modelica Association and contributors
33
*
44
* Licensed under the 3-Clause BSD license(the \"License\");
55
* you may not use this software except in compliance with

0 commit comments

Comments
 (0)