Epi-Info / Epi-Info-Web-Enter

Other
4 stars 5 forks source link

Error while build application #2

Open patelbhavinoutlook opened 5 years ago

patelbhavinoutlook commented 5 years ago

Hi

I tired to play around with code on visual studio 2017 community edition . I just downloaded source unzip the folder open folder in visual studio loaded .sln and without doing any thing just did build but I get below error.

1>------ Build started: Project: Epi.Web.Common, Configuration: Debug Any CPU ------ 2>------ Build started: Project: Epi.Web.CheckCodeEngine, Configuration: Debug Any CPU ------ 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\EpiInfo7EventGrammar.cs(276,34,276,36): warning CS0168: The variable 'ex' is declared but never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\EpiInfo7EventGrammar.cs(319,41,319,43): warning CS0168: The variable 'ex' is declared but never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rules\Functions\Rule_EPIWEEK.cs(42,26,42,36): warning CS0168: The variable 'dteWkStart' is declared but never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rules\Functions\Rule_EPIWEEK.cs(43,26,43,34): warning CS0168: The variable 'dteWkEnd' is declared but never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rules\Functions\Rule_EPIWEEK.cs(46,21,46,31): warning CS0168: The variable 'intMmwrNow' is declared but never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rules\Functions\Rule_EPIWEEK.cs(47,21,47,31): warning CS0168: The variable 'intMmwrMax' is declared but never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rules\Functions\Rule_ZSCORE.cs(54,20,54,24): warning CS0219: The variable 'flag' is assigned but its value is never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rules\Rule_Execute.cs(59,25,59,36): warning CS0219: The variable 'startupInfo' is assigned but its value is never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rules\Rule_Execute.cs(60,33,60,44): warning CS0219: The variable 'processInfo' is assigned but its value is never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rule_Context.cs(592,20,592,32): warning CS0219: The variable 'defineFormat' is assigned but its value is never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rule_Context.cs(593,20,593,38): warning CS0219: The variable 'defineNumberFormat' is assigned but its value is never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rules\Functions\Rule_STRLEN.cs(11,16,11,23): warning CS0414: The field 'Rule_STRLEN._result' is assigned but its value is never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rules\Functions\Rule_DatePart.cs(19,44,19,53): warning CS0414: The field 'Rule_DatePart.ParamList' is assigned but its value is never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rules\Rule_AutoSearch.cs(11,14,11,24): warning CS0414: The field 'Rule_AutoSearch.AlwaysShow' is assigned but its value is never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rules\EpiFunctions.cs(465,27,465,37): warning CS0414: The field 'Rule_MultipleFunctionParameterList.Expression' is assigned but its value is never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rules\Functions\Rule_DatePart.cs(18,27,18,39): warning CS0414: The field 'Rule_DatePart.functionCall' is assigned but its value is never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\Rules\EpiFunctions.cs(466,27,466,39): warning CS0414: The field 'Rule_MultipleFunctionParameterList.nonEmptyList' is assigned but its value is never used 2>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\EpiInfo7EventGrammar.cs(53,22,53,35): warning CS0414: The field 'EpiInterpreterParser.IsExecuteMode' is assigned but its value is never used 2> Epi.Web.CheckCodeEngine -> E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.CheckCodeEngine\bin\Debug\Epi.Web.CheckCodeEngine.dll 1>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.Common\Message\SourceTablesResponse.cs(6,7,6,31): warning CS0105: The using directive for 'Epi.Web.Enter.Common.DTO' appeared previously in this namespace 1>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.Common\Message\OrganizationRequest.cs(31,23,31,29): warning CS0108: 'OrganizationRequest.Action' hides inherited member 'RequestBase.Action'. Use the new keyword if hiding was intended. 1>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.Common\Message\OrganizationResponse.cs(26,23,26,30): warning CS0108: 'OrganizationResponse.Message' hides inherited member 'ResponseBase.Message'. Use the new keyword if hiding was intended. 1>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.Common\Email\EmailHandler.cs(90,37,90,39): warning CS0168: The variable 'ex' is declared but never used 1>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.Common\BusinessObject\OrganizationBO.cs(16,30,16,51): warning CS0169: The field 'OrganizationBO._OrganizationUserList' is never used 1> Epi.Web.Common -> E:\Workspace\EWE\Epi.Web\bin\Epi.Web.Enter.Common.dll 3>------ Build started: Project: Epi.Web.Interfaces, Configuration: Debug Any CPU ------ 4>------ Build started: Project: Epi.Web.DynamicForms.Core, Configuration: Debug Any CPU ------ 4>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.DynamicForms.Core\Epi.Web.DynamicForms.Core.csproj(188,5): error : This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\.nuget\NuGet.targets. 3> Epi.Web.Interfaces -> E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.Interfaces\bin\Debug\Epi.Web.Enter.Interfaces.dll 5>------ Build started: Project: Epi.Web.EF, Configuration: Debug Any CPU ------ 5>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.EF\Epi.Web.EF.csproj(97,5): error : This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\.nuget\NuGet.targets. 6>------ Build started: Project: Epi.Web.BLL, Configuration: Debug Any CPU ------ 6>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\EIWS_BLL_Core\Epi.Web.BLL.csproj(102,5): error : This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\.nuget\NuGet.targets. 7>------ Build started: Project: Epi.Web.WCF.SurveyService, Configuration: Debug Any CPU ------ 7>CSC : error CS0006: Metadata file 'E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\EIWS_BLL_Core\bin\Debug\Epi.Web.BLL.dll' could not be found 7>CSC : error CS0006: Metadata file 'E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.EF\bin\Debug\Epi.Web.EF.dll' could not be found 8>------ Build started: Project: Epi.Web.WCF.SurveyHost, Configuration: Debug Any CPU ------ 8>CSC : error CS0006: Metadata file 'E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.EF\bin\Debug\Epi.Web.EF.dll' could not be found 8>CSC : error CS0006: Metadata file 'E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\SurveyManagerInterface\bin\Debug\Epi.Web.WCF.SurveyService.dll' could not be found 9>------ Build started: Project: Epi.Web, Configuration: Debug Any CPU ------ 10>------ Build started: Project: Epi.Web.SurveyManager.Client, Configuration: Debug x86 ------ 9>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web\Epi.Web.csproj(764,5): error : This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\.nuget\NuGet.targets. 10>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.SurveyManager_Test\Page_AddUser.xaml.cs(129,30,129,32): warning CS0168: The variable 'ex' is declared but never used 10>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.SurveyManager_Test\Page_AddUser.xaml.cs(209,30,209,32): warning CS0168: The variable 'ex' is declared but never used 10>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.SurveyManager_Test\Page_AddUser.xaml.cs(280,34,280,36): warning CS0168: The variable 'ex' is declared but never used 10>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.SurveyManager_Test\Page_AddUser.xaml.cs(337,30,337,32): warning CS0168: The variable 'ex' is declared but never used 10>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.SurveyManager_Test\Page_AddUser.xaml.cs(388,30,388,32): warning CS0168: The variable 'ex' is declared but never used 10>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.SurveyManager_Test\DownLoad.xaml.cs(216,17,216,27): warning CS0219: The variable 'PageNumber' is assigned but its value is never used 10>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.SurveyManager_Test\ResponseClient.xaml.cs(188,30,188,32): warning CS0168: The variable 'ex' is declared but never used 10>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.SurveyManager_Test\Page_AddUser.xaml.cs(26,31,26,54): warning CS0169: The field 'Page_AddUser._ConfigurationAdminCode' is never used 10>E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.SurveyManager_Test\ResponseClient.xaml.cs(26,18,26,22): warning CS0169: The field 'ResponseClient.view' is never used 10> Epi.Web.SurveyManager.Client -> E:\software\Epi-Info-Cloud-Data-Capture-master\Epi-Info-Cloud-Data-Capture-master\Epi.Web.SurveyManager_Test\bin\Debug\Epi.Web.SurveyManager.Client.exe ========== Build: 4 succeeded, 6 failed, 0 up-to-date, 0 skipped ==========

Can any help me if I am missing out any thing I am new to visual studio

mlamtahri commented 5 years ago

The project not building could be related to various reasons. So, start with restoring the NuGet packages. On VS 2017 right click on the project solution then click on “Restore NuGet Packages”. Rebuild the project once the restore is complete.