Build 1180: Value assigned not used

Hi,

R# reports an error on "filename" on the first line in this code:

var filename = line.Substring("##include ".Length);
this.Word.SelectParagraph();
docToInclude.InsertFile(filename);

and also on the docToInclude initialiser some line before.

This happens on several other cases within my (fairly large) solution,
p.ex. here:

var filename = this.Name;
this.Dispose();
File.compress(filename);

Again, filename is reported as unused.

This has happened since at least the last 20 builds.

Thanks,
Alexander

2 comments

Please could you provide small solution which demonstrates this problem?

--
Eugene Pasynkov
ReSharper Technical Lead
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


"Alexander Reifinger" <nospam@reifinger.de> wrote in message
news:gnmbgj$j0d$1@is.intellij.net...

Hi,

>

R

  1. reports an error on "filename" on the first line in this code:

>

var filename = line.Substring("##include ".Length);
this.Word.SelectParagraph();
docToInclude.InsertFile(filename);

>

and also on the docToInclude initialiser some line before.

>

This happens on several other cases within my (fairly large) solution,
p.ex. here:

>

var filename = this.Name;
this.Dispose();
File.compress(filename);

>

Again, filename is reported as unused.

>

This has happened since at least the last 20 builds.

>

Thanks,
Alexander



0

Eugene Pasynkov (JetBrains) schrieb:

Please could you provide small solution which demonstrates this problem?

I was not able to reproduce it in a small project, but in our solution
(50-odd projects) I have 8 files with errors. All errors are related
with C# code calling VB code in another project (We use VB for MS Office
related stuff and C# for everything else).

I hope that helps.

Alexander

0

Please sign in to leave a comment.