mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-10 09:03:02 +08:00
Update .NET projects to use Visual Studio
This commit is contained in:
parent
fa7244eae0
commit
6a288bb5bd
10 changed files with 56 additions and 44 deletions
|
@ -11,4 +11,10 @@
|
|||
<ProjectReference Include="../../../elixirkit_dotnet/ElixirKit.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="ReleaseMixProject" BeforeTargets="Build">
|
||||
<Exec
|
||||
Command="mix release --overwrite --path=$(MSBuildProjectDirectory)/$(OutDir)/rel"
|
||||
EnvironmentVariables="MIX_ENV=prod"
|
||||
WorkingDirectory="../.." />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
#!/bin/sh
|
||||
set -euo pipefail
|
||||
|
||||
dotnet build
|
||||
target_dir="$PWD/bin/Debug/net6.0"
|
||||
(cd ../.. && mix release --overwrite --path=${target_dir}/rel)
|
||||
dotnet run --no-build
|
||||
dotnet run
|
|
@ -14,4 +14,11 @@
|
|||
<ProjectReference Include="../../../elixirkit_dotnet/ElixirKit.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="ReleaseMixProject" BeforeTargets="Build">
|
||||
<Exec
|
||||
Command="mix release --overwrite --path=$(MSBuildProjectDirectory)/$(OutDir)/rel"
|
||||
EnvironmentVariables="MIX_ENV=prod"
|
||||
WorkingDirectory="../.." />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
|
31
elixirkit/demo/rel/winforms/Demo.sln
Normal file
31
elixirkit/demo/rel/winforms/Demo.sln
Normal file
|
@ -0,0 +1,31 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.7.34202.233
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Demo", "Demo.csproj", "{0798DC29-008F-4B16-A7C8-44BAF43B2E7A}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ElixirKit", "..\..\..\elixirkit_dotnet\ElixirKit.csproj", "{74A01265-5E49-48FC-91E9-182DE46B1B81}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{0798DC29-008F-4B16-A7C8-44BAF43B2E7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0798DC29-008F-4B16-A7C8-44BAF43B2E7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0798DC29-008F-4B16-A7C8-44BAF43B2E7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0798DC29-008F-4B16-A7C8-44BAF43B2E7A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{74A01265-5E49-48FC-91E9-182DE46B1B81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{74A01265-5E49-48FC-91E9-182DE46B1B81}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{74A01265-5E49-48FC-91E9-182DE46B1B81}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{74A01265-5E49-48FC-91E9-182DE46B1B81}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {BE840FB5-BDBF-4826-A778-5C6787E42BCE}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -1,7 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
dotnet build
|
||||
target_dir="$PWD/bin/Debug/net6.0-windows"
|
||||
(cd ../.. && mix release --overwrite --path=${target_dir}/rel)
|
||||
dotnet run --no-build
|
||||
dotnet run
|
|
@ -20,4 +20,10 @@
|
|||
<ProjectReference Include="../../../elixirkit/elixirkit_dotnet/ElixirKit.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="ReleaseMixProject" BeforeTargets="Build">
|
||||
<Exec
|
||||
Command="mix release app --overwrite --path=$(MSBuildProjectDirectory)/$(OutDir)/rel"
|
||||
EnvironmentVariables="MIX_ENV=prod"
|
||||
WorkingDirectory="../../.." />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -euo pipefail
|
||||
|
||||
. `dirname $0`/env.sh
|
||||
|
||||
rm -rf $target_dir
|
||||
dotnet build Livebook.csproj $build_args
|
||||
|
||||
(
|
||||
cd ../../..
|
||||
mix release app --overwrite --path=${target_dir}/rel
|
||||
)
|
|
@ -1,15 +1,7 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
. `dirname $0`/env.sh
|
||||
|
||||
rm -rf $target_dir
|
||||
dotnet publish Livebook.csproj $build_args
|
||||
|
||||
(
|
||||
cd ../../..
|
||||
mix release app --overwrite --path=${target_dir}/rel
|
||||
)
|
||||
dotnet publish
|
||||
|
||||
vc_redist_path="bin/vc_redist.x64.exe"
|
||||
if [ ! -f $vc_redist_path ]; then
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -euo pipefail
|
||||
|
||||
export MIX_ENV=prod
|
||||
export MIX_TARGET=app
|
||||
export ELIXIRKIT_APP_NAME=Livebook
|
||||
export ELIXIRKIT_PROJECT_DIR=$PWD/../../..
|
||||
export ELIXIRKIT_RELEASE_NAME=app
|
||||
|
||||
configuration=${ELIXIRKIT_CONFIGURATION:-Debug}
|
||||
target_dir="$PWD/bin/${ELIXIRKIT_APP_NAME}-$configuration"
|
||||
build_args="--configuration $configuration"
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
set -euo pipefail
|
||||
|
||||
. `dirname $0`/build.sh
|
||||
dotnet build
|
||||
|
||||
# The installer (Installer.nsi) writes HKCR entries. Here we create HKCU entries which don't
|
||||
# require admin priveleges.
|
||||
|
|
Loading…
Reference in a new issue