Jump to content
Eitan

WPS to UWP errors

Recommended Posts

Hi,

I tried to convert one of my apps (myBills: 1 solution – 4 projects) from the Windows Phone store.

The tool ran and exited with errors.

The log file is: 

Loading projects

Finishing loading projects

Starting task: ConversionSetupTask

[ConversionSetupTask] Info:

Conversion tool version: 1.0.322.1390

Starting task: CallGraphGenerationTask

Starting task: CallGraphGenerationTask

[CallGraphGenerationTask] Processing C:\tmp\myBills\myBills\App.xaml.cs

[CallGraphGenerationTask] Processing C:\tmp\myBills\myBills\LocalizedStrings.cs

 In the error listbox it says that:

 The "CallGraphGenerationTask" task failed unexpectedly.

Artinsoft.Common.Tools.SMException: Exception [Invalid STATEMENT EXPRESSION @(145, 29). Last valid token was 'var' at (145, 25), failed token 't' at (145, 29)]. Current file 'C:\tmp\myBills\myBills\Misc\ObjectDumper.cs'. ---> Artinsoft.CSharp.Parser.ParseException: Invalid STATEMENT EXPRESSION @(145, 29). Last valid token was 'var' at (145, 25), failed token 't' at (145, 29)

   at Artinsoft.CSharp.Parser.CSParser.ReportError[T](String exprKind, Token start)

   at Artinsoft.CSharp.Parser.CSParser.ExpressionStatement(CSExpr expr, IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.EmbeddedStatement(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.Statement(IEnumerable`1 s)

   at Artinsoft.CSharp.Parser.CSParser.Block(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.EmbeddedStatement(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.ForeachStatement(Token init, IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.EmbeddedStatement(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.Statement(IEnumerable`1 s)

   at Artinsoft.CSharp.Parser.CSParser.Block(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.EmbeddedStatement(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.IfStatement(Token init, IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.EmbeddedStatement(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.Statement(IEnumerable`1 s)

   at Artinsoft.CSharp.Parser.CSParser.Block(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.EmbeddedStatement(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.IfStatement(Token init, IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.EmbeddedStatement(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.Statement(IEnumerable`1 s)

   at Artinsoft.CSharp.Parser.CSParser.Block(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.BlockOrSemicolon(IList`1 s, CSBlock& block, Token& sc)

   at Artinsoft.CSharp.Parser.CSParser.StructDeclaration2(IList`1 atts, IList`1 modifLst, Token partialkw, CSType type, Object memberName, CSTypeParamList tpl, IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.StructDeclaration(IList`1 atts, IList`1 modifLst, Token partialkw, CSType type, Object memberName, CSTypeParamList tpl, IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.StructDeclaration(IList`1 atts, IList`1 modifLst, Token partialkw, CSType type, IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.StructMemberDeclaration(IList`1 atts, IList`1 modifLst, IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.ClassMemberDeclaration(IList`1 atts, IList`1 modifLst, IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.ClassMemberDeclaration(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.ClassDeclaration(IList`1 atts, IList`1 modifLst, Token partialkw, Token classkw, IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.TypeDeclaration(IList`1 atts, IList`1 modifLst, IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.NamespaceMemberDeclaration(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.NamespaceDeclaration(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.NamespaceMemberDeclaration(IList`1 s)

   at Artinsoft.CSharp.Parser.CSParser.CompilationUnit(IEnumerable`1 s)

   at Artinsoft.CSharp.Parser.CSParser.Parse(String name, Func`1 enc, IEnumerable`1 tokenSequence, CancellationToken cancellationToken)

   at Artinsoft.CSharp.Parser.CSParser.Parse(String name, Buffer source, CancellationToken cancellationTk)

   at Artinsoft.CSharp.Parser.CSParser.Artinsoft.Common.Tools.ILoader.Load(String name, Encoding encoding, Func`1 getDefaultEncoding, CancellationToken cancellationToken)

   at Artinsoft.Common.Tools.SourceManager.LoadFile(String filename, ThreadData data, SMExceptionHandler exceptionHandler, Action`1 loaderSetup, Encoding encoding, Func`1 getDefaultEncoding, Boolean storeImmediately, CancellationToken cancellationToken)

   --- End of inner exception stack trace ---

   at Artinsoft.Common.Tools.SourceManager.<.cctor>b__1c(String filename, Exception x)

   at Artinsoft.Common.Tools.SourceManager.LoadFile(String filename, ThreadData data, SMExceptionHandler exceptionHandler, Action`1 loaderSetup, Encoding encoding, Func`1 getDefaultEncoding, Boolean storeImmediately, CancellationToken cancellationToken)

   at Artinsoft.Common.Tools.SourceManager.Retrieve(String filename, SMExceptionHandler exceptionHandler, Action`1 loaderSetup, Encoding encoding, Func`1 getDefaultEncoding, ILoader loader, CancellationToken cancellationToken)

   at Artinsoft.Common.NetAggregation.Project.GetSourceFromDoc(Document doc, SMExceptionHandler exceptionHandler, CancellationToken cancellationToken, Func`2 getDefaultEncoding)

   at Artinsoft.Common.NetAggregation.Project.<>c__DisplayClass1.<ListModules>b__0(Document doc)

   at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x)

   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

   at System.Linq.Enumerable.<OfTypeIterator>d__92`1.MoveNext()

   at Artinsoft.Winforms2Silverlight.ControlFlowCutProcessing.CallInformationCollector.CollectCallInformationFromFiles(Project project, FlowCutCollectionState collectionState, Action`1 startWithElementCallback, Action`1 doneWithElementCallback)

   at ControlFlowCutProcessing.CallGraphGenerationTask.ExecuteImpl()

   at Artinsoft.CSharp.Tasks.AbstractTask.BeforeExecuteImpl()

   at Artinsoft.Common.MSBuild.BaseCancellableTask.Execute()

   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()            

 Any idea if I am doing something wrong (this is my first try with the tool)? 

Thanks,

Eitan

Share this post


Link to post
Share on other sites

Hi Eitan !
 

Right now we are not supporting C# 6 new features, can you verify if code in line 145 of ObjectDumper contains one of them? Can you just post the line?

 

Artinsoft.Common.Tools.SMException: Exception [Invalid STATEMENT EXPRESSION @(145, 29). Last valid token was 'var' at (145, 25), failed token 't' at (145, 29)]. Current file 'C:\tmp\myBills\myBills\Misc\ObjectDumper.cs'. ---

Regards,

Olman

 

 

Edited by Olman

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use