简体   繁体   中英

Why my .cs and .designer.cs files doesn't appears under my uitest files in Visual Studio?

After a refactoring some of my files doesn't appears anymore under my uitest structure in Visual Studio. Everything works fine. I can build, test and create new action in my uitest files.

The correct structure is

- UIMaps
  - RequestPage.uitest
    - RequestPage.cs
    - RequestPage.Designer.cs
  - LoginPage.uitest
    - LoginPage.cs
    - LoginPage.Designer.cs

I have this

- UIMaps
  - RequestPage.cs
    - RequestPage.Designer.cs
  - RequestPage.uitest
  - LoginPage.cs
    - LoginPage.Designer.cs
  - LoginPage.uitest

How can I recreate the correct structure ?

You may need to edit your .csproj manually, something like this:

[...]
<ItemGroup>
  <Compile Include="RequestPage.cs">
    <DependentUpon>RequestPage.uitest</DependentUpon>
  </Compile>
  <Compile Include="RequestPage.Designer.cs">
    <DependentUpon>RequestPage.uitest</DependentUpon>
  </Compile>
[...]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM