-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGameScripts.csproj
More file actions
30 lines (24 loc) · 1.44 KB
/
Copy pathGameScripts.csproj
File metadata and controls
30 lines (24 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(MSBuildThisFileDirectory)..\EngineOutput.props" />
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<!-- 게임 스크립트 어셈블리. 핫리로드 대상이라 언로드 가능한 컨텍스트에 올라간다.
ScriptCore와 달리 이쪽만 교체되므로, 엔진이 붙잡는 진입점을 두면 안 된다. -->
<OutputPath>$(EngineManagedOutDir)Scripts\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<!-- 리로드마다 파일을 덮어써야 하므로 참조 어셈블리는 복사하지 않는다. -->
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<!-- ScriptCore는 기본 컨텍스트에 상주하는 고정 어셈블리다.
여기서는 참조만 하고 출력 폴더로 복사하지 않는다 — 복사하면 리로드 때
같은 타입이 두 컨텍스트에 각각 로드되어 캐스팅이 깨진다. -->
<ProjectReference Include="..\ScriptCore\ScriptCore.csproj" Private="false" />
<ProjectReference Include="..\ScriptCore.Generators\ScriptCore.Generators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false" />
</ItemGroup>
</Project>