-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
当在 .csproj 文件中设定 RootNamespace 属性后,SG 项目生成的 R 类型所在命名空间没有遵循该属性,仍为程序集名称。
比如:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Popcorn.Toolkit</RootNamespace>
</PropertyGroup>
</Project>生成的代码:
// <auto-generated />
#nullable enable
using System;
using System.IO;
using LuYao.ResourcePacker;
namespace Popcorn.Toolkit.Client
{
/// <summary>
/// Provides strongly-typed access to resources in Popcorn.Toolkit.Client.
/// </summary>
internal static class R请创建一个项目用来验证、测试。项目存放在 samples 目录,并加入解决方案。
Copilot
Metadata
Metadata
Assignees
Labels
No labels