SapphireSteel Forum
Welcome, Guest. Please login or register.
April 26, 2017, 05:18:24 PM

Login with username, password and session length
Search:     Advanced search
Welcome to the SapphireSteel forum - for discussion of the Sapphire and Amethyst IDEs
4074 Posts in 848 Topics by 708 Members
Latest Member: dcham_inbsys
* Home Help Search Login Register
+  SapphireSteel Forum
|-+  General
| |-+  Amethyst
| | |-+  Error When deleting file from Project
« previous next »
Pages: [1] Print
Author Topic: Error When deleting file from Project  (Read 1939 times)
Eric Shellef
Newbie
*
Posts: 7


« on: September 13, 2010, 04:21:11 AM »

Hi,

Nice product!

My info:
1) 1.0.1.978 Amethyst Professional Trial version
2) Windows 7 Professional on a 32-bit machine

When I attempt to delete a file (Incoming.xsd) from the src folder in the Solution Explorer (it is a linked file), I get the error:
startIndex cannot be larger than length of string.
Parameter name: startIndex

The relevant part of the amproj file is:
  <ItemGroup>
    <Content Include="src\Incoming.xsd">
      <Link>..\..\..\..\PokerSquare\Shared\Incoming.xsd</Link>
      <CopyToOutputDirectory>False</CopyToOutputDirectory>
    </Content>
    <Content Include="src\Outgoing.xsd">
      <Link>..\..\..\..\PokerSquare\Shared\Outgoing.xsd</Link>
      <CopyToOutputDirectory>False</CopyToOutputDirectory>
    </Content>
  </ItemGroup>

Eric
Logged
Dermot
Administrator
Hero Member
*****
Posts: 1068


« Reply #1 on: September 14, 2010, 04:33:11 AM »

Thanks for the bug report.

I can't currently reproduce this, but I will continue to try.

However, it seems to me that the real bug is to delete a linked file. This should not be allowed - I think the only option should be to 'Exclude from project'.

I'll see what C# does.

Dermot
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!